Skip to content

Commit

Permalink
Make test error give failing line
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Jun 11, 2018
1 parent 571a2cd commit 13c7dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/test.gi
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ InstallGlobalFunction(ParseTestInput, function(str, ignorecomments)
Add(outp[Length(outp)], '\n');
i := i+1;
else
Error("Invalid data in test file");
Error("Invalid data at line ", i, " of test file");
i := i+1;
fi;
od;
Expand Down
2 changes: 1 addition & 1 deletion tst/testinstall/files/test.tst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gap> Test(Filename(dir,"empty.txt"));
#I Test: File does not contain any tests!
true
gap> Test(Filename(dir,"invalidtestfile.txt"));
Error, Invalid data in test file
Error, Invalid data at line 7 of test file
gap> Test(Filename(dir, "tinytest.txt"));
true
gap> STOP_TEST("test.tst");

0 comments on commit 13c7dd4

Please sign in to comment.