Skip to content

Commit 3288a14

Browse files
committed
Adjust & expand TCodeDeocder tests in standard/io.tst
1 parent 48087bf commit 3288a14

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tst/standard/io.tst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,21 +464,24 @@ gap> gr := TCodeDecoder("12 3 0 10 6 2 8 8");
464464
<immutable digraph with 12 vertices, 3 edges>
465465
gap> OutNeighbours(gr);
466466
[ [ 11 ], [ ], [ ], [ ], [ ], [ ], [ 3 ], [ ], [ 9 ], [ ], [ ], [ ] ]
467-
gap> gr := TCodeDecoder(3);
467+
gap> TCodeDecoder(3);
468468
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
469469
Error, no 1st choice method found for `TCodeDecoder' on 1 arguments
470-
gap> gr := TCodeDecoder("gr 5");
470+
gap> TCodeDecoder("gr 5");
471471
Error, the 2nd argument <s> must be a string of at least two space-separated n\
472472
on-negative integers,
473-
gap> gr := TCodeDecoder("10");
473+
gap> TCodeDecoder("10");
474474
Error, the 2nd argument <s> must be a string of at least two space-separated n\
475475
on-negative integers,
476-
gap> gr := TCodeDecoder("2 2 0 4 1 2");
476+
gap> TCodeDecoder("-1 5");
477+
Error, the 2nd argument <s> must be a string of at least two space-separated n\
478+
on-negative integers,
479+
gap> TCodeDecoder("2 2 0 4 1 2");
477480
Error, all integers in the 2nd argument <s>, except for the first two, must be\
478481
strictly less than the first integer, which is 2,
479-
gap> gr := TCodeDecoder("3 2 0 2");
482+
gap> TCodeDecoder("3 2 0 2");
480483
Error, the 2nd argument <s> must be a string of length at least 6
481-
gap> gr := TCodeDecoderNC("100 5 0 12 48 49 99 1 54 49 49 49");
484+
gap> TCodeDecoderNC("100 5 0 12 48 49 99 1 54 49 49 49");
482485
<immutable digraph with 100 vertices, 5 edges>
483486

484487
# Empty strings should not create graphs

0 commit comments

Comments
 (0)