mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
🔥 the test of parsing in the specified language.
This is redundant to the test that it renders with the specified renderer.
This commit is contained in:
parent
4eb3b7eacd
commit
dd4cb32b90
@ -18,10 +18,6 @@ import Test.Hspec.Expectations.Pretty
|
||||
spec :: Spec
|
||||
spec = parallel $ do
|
||||
describe "parseBlob" $ do
|
||||
it "parses in the specified language" $ do
|
||||
Just term <- runTask $ parseBlob IdentityTermRenderer methodsBlob
|
||||
void term `shouldBe` Term (() `In` Indexed [ Term (() `In` Method [] (Term (() `In` Leaf "foo")) Nothing [] []) ])
|
||||
|
||||
it "throws if not given a language" $ do
|
||||
runTask (parseBlob SExpressionTermRenderer methodsBlob { blobLanguage = Nothing }) `shouldThrow` (\ code -> case code of
|
||||
ExitFailure 1 -> True
|
||||
|
Loading…
Reference in New Issue
Block a user