mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
test for rshift
This commit is contained in:
parent
8cf838217c
commit
167e9e3934
@ -87,9 +87,9 @@ spec config = parallel $ do
|
||||
Right (Just (Module _ (_, addr) :| [])) -> heapLookupAll addr heap `shouldBe` Just [Value.Integer (Number.Integer 3)]
|
||||
other -> expectationFailure (show other)
|
||||
|
||||
it "evaluates LShift statements" $ do
|
||||
(_, (heap, res)) <- evaluate ["lshift.ts"]
|
||||
case ModuleTable.lookup "lshift.ts" <$> res of
|
||||
it "evaluates RShift statements" $ do
|
||||
(_, (heap, res)) <- evaluate ["rshift.ts"]
|
||||
case ModuleTable.lookup "rshift.ts" <$> res of
|
||||
Right (Just (Module _ (_, addr) :| [])) -> heapLookupAll addr heap `shouldBe` Just [Value.Integer (Number.Integer 4)]
|
||||
other -> expectationFailure (show other)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user