mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Test against the s-expression renderer.
This commit is contained in:
parent
f095b89492
commit
4eb3b7eacd
@ -23,7 +23,7 @@ spec = parallel $ do
|
||||
void term `shouldBe` Term (() `In` Indexed [ Term (() `In` Method [] (Term (() `In` Leaf "foo")) Nothing [] []) ])
|
||||
|
||||
it "throws if not given a language" $ do
|
||||
runTask (parseBlob IdentityTermRenderer methodsBlob { blobLanguage = Nothing }) `shouldThrow` (\ code -> case code of
|
||||
runTask (parseBlob SExpressionTermRenderer methodsBlob { blobLanguage = Nothing }) `shouldThrow` (\ code -> case code of
|
||||
ExitFailure 1 -> True
|
||||
_ -> False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user