1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Test that we can construct integers.

This commit is contained in:
Rob Rix 2018-05-07 15:10:41 -04:00
parent 980fd74aed
commit 1bd817bc76

View File

@ -9,7 +9,12 @@ import qualified Data.Abstract.Value as Value
import SpecHelpers hiding (Term)
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
= run