summaryrefslogtreecommitdiff
path: root/test/runTests.hs
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-01-26 16:31:57 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-01-26 16:32:12 +0100
commit6f7e07679a196232d21547f4df78b583a576cbff (patch)
tree2ec0d0fb7b65f736251c958d3314178a9d5558b5 /test/runTests.hs
parenta59a087dbf176d1c96e65cb1609f06a512803a9d (diff)
reorder definitions in Infer.hs
Diffstat (limited to 'test/runTests.hs')
-rw-r--r--test/runTests.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/runTests.hs b/test/runTests.hs
index d23113fc..8358ae92 100644
--- a/test/runTests.hs
+++ b/test/runTests.hs
@@ -23,7 +23,6 @@ import Options.Applicative
23import qualified Data.Text as T 23import qualified Data.Text as T
24import qualified Data.Text.IO as TIO 24import qualified Data.Text.IO as TIO
25import Text.Printf 25import Text.Printf
26import Text.Parsec.Pos
27 26
28import LambdaCube.Compiler.Pretty (ppShow) 27import LambdaCube.Compiler.Pretty (ppShow)
29import LambdaCube.Compiler.CoreToIR (compilePipeline) 28import LambdaCube.Compiler.CoreToIR (compilePipeline)
@@ -168,8 +167,8 @@ doTest Config{..} (i, fn) = do
168 Left e -> Left (tab "!Failed" e, Failed) 167 Left e -> Left (tab "!Failed" e, Failed)
169 Right (fname, Left e, i) 168 Right (fname, Left e, i)
170 -> Right ("typechecked module" 169 -> Right ("typechecked module"
171 , unlines $ e: "tooltips:": [ showRange (b, e) ++ " " ++ intercalate " | " m 170 , unlines $ e: "tooltips:": [ ppShow r ++ " " ++ intercalate " | " m
172 | (b, e, m) <- listInfos i, sourceName b == fname]) 171 | (r, m) <- listInfos i])
173 Right (fname, Right e, i) 172 Right (fname, Right e, i)
174 | True <- i `deepseq` False -> error "impossible" 173 | True <- i `deepseq` False -> error "impossible"
175 | tyOf e == outputType -> Right ("compiled pipeline", show . compilePipeline OpenGL33 $ e) 174 | tyOf e == outputType -> Right ("compiled pipeline", show . compilePipeline OpenGL33 $ e)