summaryrefslogtreecommitdiff
path: root/tests/Language
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Language')
-rw-r--r--tests/Language/Elna/NameAnalysisSpec.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Language/Elna/NameAnalysisSpec.hs b/tests/Language/Elna/NameAnalysisSpec.hs
index 9d63e74..c6f4504 100644
--- a/tests/Language/Elna/NameAnalysisSpec.hs
+++ b/tests/Language/Elna/NameAnalysisSpec.hs
@@ -63,7 +63,7 @@ spec = describe "nameAnalysis" $ do
case SymbolTable.lookup "main" <$> actual of
Right lookupResult
| Just (ProcedureInfo localTable _) <- lookupResult ->
- localTable `shouldBe` expected
+ Just localTable `shouldBe` expected
_ -> expectationFailure "Procedure symbol not found"
it "puts variables into the local symbol table" $ do
@@ -74,5 +74,5 @@ spec = describe "nameAnalysis" $ do
case SymbolTable.lookup "main" <$> actual of
Right lookupResult
| Just (ProcedureInfo localTable _) <- lookupResult ->
- localTable `shouldBe` expected
+ Just localTable `shouldBe` expected
_ -> expectationFailure "Procedure symbol not found"