Avoid pollution of test case with ANSI codes

Apparently, Curses was outputting system-specific terminal codes which
caused test cases to fail some places. This test update makes it stop by
not running the interactive REPL.
This commit is contained in:
David Raymond Christiansen 2014-02-04 13:26:53 +01:00
parent 58f481ce65
commit 3b9ce1cad7
3 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,2 @@
Type checking ./test022.idr
[?1049h(B[?7h[?1049l [?1l>0.9995736030415051 : Float
0.9995736030415051

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo ":x x" | idris --quiet --nocolour test022.idr
idris --quiet --nocolour test022.idr --exec main
rm -f test021 test021a *.ibc

View File

@ -4,3 +4,6 @@ module Main
x : Float
x = unsafePerformIO (mkForeign (FFun "sin" [FFloat] FFloat) 1.6)
main : IO ()
main = putStrLn (show x)