From a1863147f866718c19c8fdefeeb033efab766885 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 5 Aug 2024 22:56:35 +0200 Subject: Don't allow identifier duplicates --- tests/Language/Elna/NameAnalysisSpec.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Language/Elna') 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" -- cgit v1.2.3