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:
parent
980fd74aed
commit
1bd817bc76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user