mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Test that we can construct integers.
This commit is contained in:
parent
980fd74aed
commit
1bd817bc76
@ -9,7 +9,12 @@ import qualified Data.Abstract.Value as Value
|
|||||||
import SpecHelpers hiding (Term)
|
import SpecHelpers hiding (Term)
|
||||||
|
|
||||||
spec :: Spec
|
spec :: Spec
|
||||||
spec = parallel $ pure ()
|
spec = parallel $ do
|
||||||
|
it "constructs integers" $ do
|
||||||
|
let expected = evaluate (integer 123)
|
||||||
|
let actual = Right (Right (Right (Value.injValue (Value.Integer (Number.Integer 123)))))
|
||||||
|
fst expected `shouldBe` actual
|
||||||
|
pure ()
|
||||||
|
|
||||||
evaluate
|
evaluate
|
||||||
= run
|
= run
|
||||||
|
Loading…
Reference in New Issue
Block a user