mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Fix alignment.
This commit is contained in:
parent
6f25df9080
commit
52863de0e3
@ -101,7 +101,7 @@ spec config = parallel $ do
|
|||||||
(_, (_, res)) <- evaluate ["void.ts"]
|
(_, (_, res)) <- evaluate ["void.ts"]
|
||||||
case ModuleTable.lookup "void.ts" <$> res of
|
case ModuleTable.lookup "void.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Null
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Null
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
it "evaluates delete" $ do
|
it "evaluates delete" $ do
|
||||||
(scopeGraph, (heap, res)) <- evaluate ["delete.ts"]
|
(scopeGraph, (heap, res)) <- evaluate ["delete.ts"]
|
||||||
@ -132,31 +132,31 @@ spec config = parallel $ do
|
|||||||
(_, (_, res)) <- evaluate ["band.ts"]
|
(_, (_, res)) <- evaluate ["band.ts"]
|
||||||
case ModuleTable.lookup "band.ts" <$> res of
|
case ModuleTable.lookup "band.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 0)
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 0)
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
it "evaluates BXOr statements" $ do
|
it "evaluates BXOr statements" $ do
|
||||||
(_, (_, res)) <- evaluate ["bxor.ts"]
|
(_, (_, res)) <- evaluate ["bxor.ts"]
|
||||||
case ModuleTable.lookup "bxor.ts" <$> res of
|
case ModuleTable.lookup "bxor.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 3)
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 3)
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
it "evaluates LShift statements" $ do
|
it "evaluates LShift statements" $ do
|
||||||
(_, (_, res)) <- evaluate ["lshift.ts"]
|
(_, (_, res)) <- evaluate ["lshift.ts"]
|
||||||
case ModuleTable.lookup "lshift.ts" <$> res of
|
case ModuleTable.lookup "lshift.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 4)
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 4)
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
it "evaluates RShift statements" $ do
|
it "evaluates RShift statements" $ do
|
||||||
(_, (_, res)) <- evaluate ["rshift.ts"]
|
(_, (_, res)) <- evaluate ["rshift.ts"]
|
||||||
case ModuleTable.lookup "rshift.ts" <$> res of
|
case ModuleTable.lookup "rshift.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 0)
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer 0)
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
it "evaluates Complement statements" $ do
|
it "evaluates Complement statements" $ do
|
||||||
(_, (_, res)) <- evaluate ["complement.ts"]
|
(_, (_, res)) <- evaluate ["complement.ts"]
|
||||||
case ModuleTable.lookup "complement.ts" <$> res of
|
case ModuleTable.lookup "complement.ts" <$> res of
|
||||||
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer (-2))
|
Right (Just (Module _ (_, value))) -> value `shouldBe` Value.Integer (Number.Integer (-2))
|
||||||
other -> expectationFailure (show other)
|
other -> expectationFailure (show other)
|
||||||
|
|
||||||
|
|
||||||
where
|
where
|
||||||
|
Loading…
Reference in New Issue
Block a user