diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-09-10 19:20:11 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-09-10 19:20:11 +0100 |
commit | 808f960c6aa800b0d3dcde897959a8e26303ef7d (patch) | |
tree | 3e0f578e401128ec31f25c7c51c6a1852bc7b882 /test | |
parent | a874ede2abd668b4db35b27d85a25777d6e4bc3c (diff) | |
download | micro-lang-hs-808f960c6aa800b0d3dcde897959a8e26303ef7d.tar.gz micro-lang-hs-808f960c6aa800b0d3dcde897959a8e26303ef7d.zip |
Better interface
Diffstat (limited to 'test')
-rw-r--r-- | test/Language.hs | 2 |
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 () |