aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-10 19:20:11 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-10 19:20:11 +0100
commit808f960c6aa800b0d3dcde897959a8e26303ef7d (patch)
tree3e0f578e401128ec31f25c7c51c6a1852bc7b882 /test
parenta874ede2abd668b4db35b27d85a25777d6e4bc3c (diff)
downloadmicro-lang-hs-808f960c6aa800b0d3dcde897959a8e26303ef7d.tar.gz
micro-lang-hs-808f960c6aa800b0d3dcde897959a8e26303ef7d.zip
Better interface
Diffstat (limited to 'test')
-rw-r--r--test/Language.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Language.hs b/test/Language.hs
index 9f47008..95d5e75 100644
--- a/test/Language.hs
+++ b/test/Language.hs
@@ -24,7 +24,7 @@ expectError input etyp = do
case r of
Left e -> assertFailure $ show e
Right ast -> do
- res <- return $ evalState (compileAll ast) startState
+ res <- return $ compile ast
case crExit res of
Left e -> case (find (\(E.Error t _ _) -> t == etyp) e) of
Just _ -> return ()