1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Compare against strings

This commit is contained in:
Rick Winfrey 2019-01-17 12:50:33 -08:00
parent ad57ac0967
commit c7b1d13ab0

View File

@ -164,12 +164,12 @@ spec config = parallel $ do
Right (Just (Module _ (_, value))) -> value `shouldBe` (Concrete.Float (Number.Decimal 9.0)) Right (Just (Module _ (_, value))) -> value `shouldBe` (Concrete.Float (Number.Decimal 9.0))
other -> expectationFailure (show other) other -> expectationFailure (show other)
-- it "prevents lookup of private members external to the instance" $ do it "prevents lookup of private members external to the instance" $ do
-- (_, (_, res)) <- evaluate ["class-private1.ts", "class-private2.ts"] (_, (_, res)) <- evaluate ["class-private1.ts", "class-private2.ts"]
-- case ModuleTable.lookup "class-private1.ts" <$> res of let accessControlError = "SomeError (BaseError (ModuleInfo \"class-private2.ts\") [18, 1]..[18, 8] (AccessControlError (\"adder\",Public) (\"y\",Private) (Float 3.0)))"
-- Left (SomeError (BaseError _ _ (DerefError (Closure _ _ maybeName _ _ _ _ _)))) -> maybeName `shouldBe` (Just "private_add") case res of
-- other -> expectationFailure (show other) Left err -> show err `shouldBe` accessControlError
other -> expectationFailure (show other)
where where
fixtures = "test/fixtures/typescript/analysis/" fixtures = "test/fixtures/typescript/analysis/"