Tests will stop if there's an error.

This commit is contained in:
Erik Svedäng 2017-11-22 14:12:09 +01:00
parent c3ebae0afd
commit d64552f1ec
2 changed files with 9 additions and 8 deletions

View File

@ -204,4 +204,5 @@ main = do putStrLn "Welcome to Carp 0.2.0"
Build -> do _ <- executeString context' ":b" "Compiler (Build)"
return ()
BuildAndRun -> do _ <- executeString context' ":bx" "Compiler (Build & Run)"
-- TODO: Handle the return value from executeString and return that one to the shell
return ()

View File

@ -16,13 +16,13 @@ carp ./examples/array.carp;
carp ./examples/updating.carp;
carp ./examples/external_struct.carp;
carp ./test/double_math.carp -x;
carp ./test/float_math.carp -x;
carp ./test/int_math.carp -x;
carp ./test/safe_artihmetic.carp -x;
carp ./test/statistics.carp -x;
carp ./test/vector2.carp -x;
carp ./test/vector3.carp -x;
carp ./test/vectorn.carp -x;
carp ./test/double_math.carp -b; ./out/a.out;
carp ./test/float_math.carp -b; ./out/a.out;
carp ./test/int_math.carp -b; ./out/a.out;
carp ./test/safe_artihmetic.carp -b; ./out/a.out;
carp ./test/statistics.carp -b; ./out/a.out;
carp ./test/vector2.carp -b; ./out/a.out;
carp ./test/vector3.carp -b; ./out/a.out;
carp ./test/vectorn.carp -b; ./out/a.out;
carp ./examples/game.carp -b;