mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Remove a few extra parens
This commit is contained in:
parent
417b9ec965
commit
465feebb39
@ -23,8 +23,8 @@ spec = parallel $ do
|
||||
|
||||
it "evaluates namespaces" $ do
|
||||
res <- evaluate "namespaces.php"
|
||||
(findEnv res) `shouldBe` [ (name "NS1", addr 0)
|
||||
, (name "Foo", addr 6) ]
|
||||
findEnv res `shouldBe` [ (name "NS1", addr 0)
|
||||
, (name "Foo", addr 6) ]
|
||||
|
||||
let heap = findHeap res
|
||||
Map.lookup (Precise 0) heap `shouldBe` ns "NS1" [ (name "Sub1", addr 1)
|
||||
|
@ -21,8 +21,8 @@ spec = parallel $ do
|
||||
|
||||
it "load wrap" $ do
|
||||
res <- evaluate "load-wrap.rb"
|
||||
(findValue res) `shouldBe` Left "free variable: \"foo\""
|
||||
(findEnv res) `shouldBe` []
|
||||
findValue res `shouldBe` Left "free variable: \"foo\""
|
||||
findEnv res `shouldBe` []
|
||||
|
||||
it "subclass" $ do
|
||||
v <- findValue <$> evaluate "subclass.rb"
|
||||
|
Loading…
Reference in New Issue
Block a user