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

add test file for bxor

This commit is contained in:
Ayman Nadeem 2018-08-17 13:24:40 -04:00
parent c76948c76a
commit a5c7010f85
2 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,12 @@ spec config = parallel $ do
Env.names env `shouldBe` [ "x" ]
other -> expectationFailure (show other)
it "evaluates await statements" $ do
(_, (heap, res)) <- evaluate ["await.ts"]
case ModuleTable.lookup "await.ts" <$> res of
Right (Just (Module _ (_, addr) :| [])) -> heapLookupAll addr heap `shouldBe` Just [Value.Float (Number.Decimal 20.0)]
other -> expectationFailure (show other)
where
fixtures = "test/fixtures/typescript/analysis/"
evaluate = evalTypeScriptProject . map (fixtures <>)

View File

@ -0,0 +1 @@
1 ^ 2;