Skip to content

Commit

Permalink
oper.gi: add detail to DigraphDisjointUnion error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson committed Nov 29, 2019
1 parent 08e6a29 commit 49a9331
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function(arg)
if not IsList(arg) or IsEmpty(arg)
or not ForAll(arg, IsDigraphByOutNeighboursRep) then
ErrorNoReturn("the arguments must be digraphs by out-neighbours, or a ",
"single list of digraphs by out-neighbours,");
"single non-empty list of digraphs by out-neighbours,");
fi;

D := arg[1];
Expand Down
12 changes: 6 additions & 6 deletions tst/standard/oper.tst
Original file line number Diff line number Diff line change
Expand Up @@ -876,14 +876,14 @@ gap> gr2 := CompleteDigraph(100);
gap> DigraphDisjointUnion(gr) = gr;
true
gap> DigraphDisjointUnion([[]]);
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
igraphs by out-neighbours,
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
list of digraphs by out-neighbours,
gap> DigraphDisjointUnion([gr], [gr]);
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
igraphs by out-neighbours,
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
list of digraphs by out-neighbours,
gap> DigraphDisjointUnion(gr, Group(()));
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
igraphs by out-neighbours,
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
list of digraphs by out-neighbours,
gap> DigraphDisjointUnion(gr, gr);
<immutable digraph with 2000 vertices, 2000 edges>
gap> DigraphDisjointUnion([gr2, gr2]);
Expand Down

0 comments on commit 49a9331

Please sign in to comment.