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:
parent
c76948c76a
commit
a5c7010f85
@ -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 <>)
|
||||
|
1
test/fixtures/typescript/analysis/bxor.ts
vendored
Normal file
1
test/fixtures/typescript/analysis/bxor.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
1 ^ 2;
|
Loading…
Reference in New Issue
Block a user