Skip to content

Commit

Permalink
Update tests to test IsOrderIdeal
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon committed Jan 31, 2024
1 parent 7f0bb1f commit 40e0aa8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tst/standard/oper.tst
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,16 @@ gap> TestPartialOrderDigraph := Digraph([[1, 3], [2, 3], [3]]);
<immutable digraph with 3 vertices, 5 edges>
gap> IsOrderIdeal(TestPartialOrderDigraph, [ 1,2,3 ]);
true
gap> TestPartialOrderDigraph2 := Digraph([[1, 3], [2, 3], [3]]);
<immutable digraph with 3 vertices, 5 edges>
gap> TestUnion := DigraphDisjointUnion(TestPartialOrderDigraph, TestPartialOrderDigraph2);
<immutable digraph with 6 vertices, 10 edges>
gap> IsOrderIdeal(TestUnion, [ 1,2,3 ]);
true
gap> IsOrderIdeal(TestUnion, [ 4,5,6 ]);
true
gap> IsOrderIdeal(TestUnion, [ 1,5,6 ]);
false

# DIGRAPHS_UnbindVariables
gap> Unbind(C);
Expand Down Expand Up @@ -2880,7 +2890,7 @@ gap> Unbind(tclosure);
gap> Unbind(u1);
gap> Unbind(u2);
gap> Unbind(x);
gap> Unbind(IsPartialOrderDigraph);
gap> Unbind(TestPartialOrderDigraph);

#
gap> DIGRAPHS_StopTest();
Expand Down

0 comments on commit 40e0aa8

Please sign in to comment.