1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Run the builders.

This commit is contained in:
Rob Rix 2018-05-14 10:28:01 -04:00
parent fc70382d5b
commit b979e9757c

View File

@ -14,13 +14,13 @@ spec = parallel $ do
for_ diffFixtures $ \ (diffRenderer, diffMode, expected) ->
it ("renders to " <> show diffRenderer <> " in mode " <> show diffMode) $ do
output <- runTask $ runDiff diffRenderer diffMode
output `shouldBe'` expected
runBuilder output `shouldBe'` expected
describe "runParse" $
for_ parseFixtures $ \ (parseTreeRenderer, parseMode, expected) ->
it ("renders to " <> show parseTreeRenderer <> " in mode " <> show parseMode) $ do
output <- runTask $ runParse parseTreeRenderer parseMode
output `shouldBe'` expected
runBuilder output `shouldBe'` expected
where
shouldBe' actual expected = do
when (actual /= expected) $ print actual