gap> Test("broken-test-2.tst", rec(width := 800));
Error, Invalid test file: #@ command found in the middle of a single test at broken-test-2.tst:5
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: #@ command found in the middle of a single test" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-3.tst", rec(width := 800));
Error, Invalid test file at broken-test-3.tst:5
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-4.tst", rec(width := 800));
Error, Invalid test file: Nested #@if at broken-test-4.tst:2
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: Nested #@if" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-5.tst", rec(width := 800));
Error, Invalid test file: two #@else at broken-test-5.tst:7
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: two #@else" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-6.tst", rec(width := 800));
Error, Invalid test file: Continuation prompt '> ' followed by a tab, expected a regular space at broken-test-6.tst:3
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: Continuation prompt '> ' followed by a tab, expected a regular space" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-7.tst", rec(width := 800));
Error, Invalid test file: #@elif after #@else at broken-test-7.tst:7
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: #@elif after #@else" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-8.tst", rec(width := 800));
Error, Invalid test file: #@elif without #@if at broken-test-8.tst:1
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: #@elif without #@if" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("broken-test-9.tst", rec(width := 800));
Error, Invalid test file: Unterminated #@if at broken-test-9.tst:7
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file: Unterminated #@if" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("invalidtestfile.tst", rec(width := 800));
Error, Invalid test file at invalidtestfile.tst:7
Stack trace:
*[1] ErrorNoReturn( s, " at ", fnam, ":", i );
   @ GAPROOT/lib/test.gi:LINE
 [2] testError( "Invalid test file" );
   @ GAPROOT/lib/test.gi:LINE
 [3] ParseTestInput( full, opts.ignoreComments, fnam )
   @ GAPROOT/lib/test.gi:LINE
<function "Test">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop
brk> quit;
gap> Test("empty.tst", rec(width := 800));
#I  Test: File does not contain any tests!
true
gap> Test("tinytest.tst", rec(width := 800));
true
gap> QUIT;
