mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
We’re already destructuring the tuples.
This commit is contained in:
parent
435a211fc4
commit
d8201341c9
@ -20,13 +20,13 @@ spec :: Spec
|
||||
spec = parallel $ do
|
||||
it "constructs integers" $ do
|
||||
(expected, _) <- evaluate (box (integer 123))
|
||||
fst <$> expected `shouldBe` Right (Value.Integer (Number.Integer 123))
|
||||
expected `shouldBe` Right (Value.Integer (Number.Integer 123))
|
||||
|
||||
it "calls functions" $ do
|
||||
(expected, _) <- evaluate $ do
|
||||
identity <- closure [name "x"] lowerBound (variable (name "x"))
|
||||
call identity [box (integer 123)]
|
||||
fst <$> expected `shouldBe` Right (Value.Integer (Number.Integer 123))
|
||||
expected `shouldBe` Right (Value.Integer (Number.Integer 123))
|
||||
|
||||
evaluate
|
||||
= runM
|
||||
|
Loading…
Reference in New Issue
Block a user