summaryrefslogtreecommitdiff
path: root/src/test-mp-equation.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-03-16 00:21:35 +0100
committerGitHub <[email protected]>2020-03-16 00:21:35 +0100
commite92e709de7d9b92cff1c1d94ddc26ebb7699cc62 (patch)
treec82b72198a1fd5a3a7c66e0f09b3e5319f103d93 /src/test-mp-equation.c
parentab02da75a6bd398c23a035354848100687d54dc1 (diff)
downloadmate-calc-e92e709de7d9b92cff1c1d94ddc26ebb7699cc62.tar.bz2
mate-calc-e92e709de7d9b92cff1c1d94ddc26ebb7699cc62.tar.xz
parserfunc: fix crash when calculating nested pow
Diffstat (limited to 'src/test-mp-equation.c')
-rw-r--r--src/test-mp-equation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c
index d31c546..becf742 100644
--- a/src/test-mp-equation.c
+++ b/src/test-mp-equation.c
@@ -435,6 +435,7 @@ test_equations(void)
test("2²", "4", 0);
test("2³", "8", 0);
test("2¹⁰", "1024", 0);
+ test("2³ ²", "512", 0);
test("(1+2)²", "9", 0);
test("(x)²", "4", 0);
test("|1−3|²", "4", 0);