summaryrefslogtreecommitdiff
path: root/test/runTests.hs
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-14 11:28:53 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-14 11:32:08 +0100
commit4b8d586412b024f24121e00c8ce0f2bc3eb53234 (patch)
treedcc006db9670a71c32bdf2bf13332227d1765e82 /test/runTests.hs
parentcc11c0743bbab50f0f9d7bcc33fd41533a280870 (diff)
pretty print pipelines in .out files
Diffstat (limited to 'test/runTests.hs')
-rw-r--r--test/runTests.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runTests.hs b/test/runTests.hs
index 5d2cc860..5c3cd2f4 100644
--- a/test/runTests.hs
+++ b/test/runTests.hs
@@ -189,7 +189,7 @@ doTest Config{..} (i, fn) = do
189 , unlines $ e: listAllInfos i) 189 , unlines $ e: listAllInfos i)
190 Right (fname, Right (e, te), i) 190 Right (fname, Right (e, te), i)
191 | True <- i `deepseq` False -> error "impossible" 191 | True <- i `deepseq` False -> error "impossible"
192 | te == outputType -> Right ("compiled pipeline", show $ compilePipeline OpenGL33 (e, te)) 192 | te == outputType -> Right ("compiled pipeline", prettyShowUnlines $ compilePipeline OpenGL33 (e, te))
193 | e == trueExp -> Right ("reducted main", ppShow e) 193 | e == trueExp -> Right ("reducted main", ppShow e)
194 | te == boolType -> Left (tab "!Failed" $ "main should be True but it is \n" ++ ppShow e, Failed) 194 | te == boolType -> Left (tab "!Failed" $ "main should be True but it is \n" ++ ppShow e, Failed)
195 | otherwise -> Right ("reduced main " ++ ppShow te, ppShow e) 195 | otherwise -> Right ("reduced main " ++ ppShow te, ppShow e)