From acab64cc0f21c0ee9fc5b9b08b60e08997818222 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 10 Sep 2022 22:10:01 +0100 Subject: Preparing constant folding --- test/Language.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Language.hs') diff --git a/test/Language.hs b/test/Language.hs index 6bedc68..83736b2 100644 --- a/test/Language.hs +++ b/test/Language.hs @@ -23,7 +23,7 @@ expectError input etyp = do Left e -> assertFailure $ show e Right ast -> do res <- return $ compile ast - case crExit res of + case res of Left e -> case (find (\(E.Error t _ _) -> t == etyp) e) of Just _ -> return () Nothing -> assertFailure $ "expected " ++ show etyp ++ " didn't happen, got instead:\n" ++ unlines (map (\(E.Error t _ _) -> show t) e) -- cgit v1.2.3