aboutsummaryrefslogtreecommitdiff
path: root/test/Language.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-11 16:02:31 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-11 16:02:31 +0100
commit5f5724b0b3785eae99dacc7336b1f4bd9536ef08 (patch)
tree363d5cc230bc4258122fb4fd5b877ec1261c1946 /test/Language.hs
parentead8764499fe3c094b1e60a1b8464e9e008fc260 (diff)
downloadmicro-lang-hs-5f5724b0b3785eae99dacc7336b1f4bd9536ef08.tar.gz
micro-lang-hs-5f5724b0b3785eae99dacc7336b1f4bd9536ef08.zip
Constant folding fixes
Diffstat (limited to 'test/Language.hs')
-rw-r--r--test/Language.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Language.hs b/test/Language.hs
index 604b06b..9d81733 100644
--- a/test/Language.hs
+++ b/test/Language.hs
@@ -254,9 +254,9 @@ testCase18 =
TestCase $
assertCompileAst
"module main\n\
- \1 + 2;"
+ \1 + 2 + 3 + (5 + 5);"
[ A.Module "main" $ newPos "-" 1 1,
- A.Num 3 $ newPos "-" 2 5
+ A.Num 16 $ newPos "-" 2 13
]
-- test errors