diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-08-05 22:56:35 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-08-05 22:56:35 +0200 |
| commit | a1863147f866718c19c8fdefeeb033efab766885 (patch) | |
| tree | 4af6179807587fe945b1910dc0be990a64929365 /tests/Language | |
| parent | 9cb9ab536f51978b8251a651d77d955cb8b794e1 (diff) | |
| download | elna-a1863147f866718c19c8fdefeeb033efab766885.tar.gz | |
Don't allow identifier duplicates
Diffstat (limited to 'tests/Language')
| -rw-r--r-- | tests/Language/Elna/NameAnalysisSpec.hs | 4 |
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" |
