Skip to content

Commit c5322a9

Browse files
committed
Update test output for compatibility with pluralization changes in GAP
1 parent 1869cd9 commit c5322a9

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

tst/standard/digraph.tst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,21 @@ gap> DigraphNrVertices(RandomDigraph(200, 0.854));
574574
200
575575
gap> IsMultiDigraph(RandomDigraph(1000));
576576
false
577+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
578+
gap> RandomDigraph(0);
579+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
580+
Error, no 1st choice method found for `RandomDigraph' on 1 argument
581+
gap> RandomDigraph("a");
582+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
583+
Error, no 1st choice method found for `RandomDigraph' on 1 argument
584+
#@else
577585
gap> RandomDigraph(0);
578586
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
579587
Error, no 1st choice method found for `RandomDigraph' on 1 arguments
580588
gap> RandomDigraph("a");
581589
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
582590
Error, no 1st choice method found for `RandomDigraph' on 1 arguments
591+
#@fi
583592
gap> RandomDigraph(4, 0);
584593
<immutable empty digraph with 4 vertices>
585594
gap> RandomDigraph(10, 1.01);
@@ -642,9 +651,15 @@ gap> DigraphNrVertices(gr);
642651
100
643652
gap> DigraphNrEdges(gr);
644653
1000
654+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
655+
gap> RandomMultiDigraph(0);
656+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
657+
Error, no 1st choice method found for `RandomMultiDigraph' on 1 argument
658+
#@else
645659
gap> RandomMultiDigraph(0);
646660
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
647661
Error, no 1st choice method found for `RandomMultiDigraph' on 1 arguments
662+
#@fi
648663
gap> RandomMultiDigraph(0, 1);
649664
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
650665
Error, no 1st choice method found for `RandomMultiDigraph' on 2 arguments
@@ -666,9 +681,15 @@ gap> RandomTournament(IsMutableDigraph, 10);
666681
gap> RandomLattice(25);;
667682
gap> RandomLattice(1);
668683
<immutable digraph with 1 vertex, 1 edge>
684+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
685+
gap> RandomLattice(-1);
686+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
687+
Error, no 1st choice method found for `RandomLattice' on 1 argument
688+
#@else
669689
gap> RandomLattice(-1);
670690
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
671691
Error, no 1st choice method found for `RandomLattice' on 1 arguments
692+
#@fi
672693
673694
# The list of random lattice Digraph6Strings D was generated by running:
674695
# D := List([1 .. 100], x -> Digraph6String(RandomLattice(7)));

tst/standard/examples.tst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,15 @@ gap> EmptyDigraph(IsMutableDigraph, -1);
8888
Error, the argument <n> must be a non-negative integer,
8989
9090
# CycleDigraph
91+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
92+
gap> gr := CycleDigraph(0);
93+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
94+
Error, no 1st choice method found for `CycleDigraph' on 1 argument
95+
#@else
9196
gap> gr := CycleDigraph(0);
9297
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
9398
Error, no 1st choice method found for `CycleDigraph' on 1 arguments
99+
#@fi
94100
gap> gr := CycleDigraph(1);
95101
<immutable digraph with 1 vertex, 1 edge>
96102
gap> AutomorphismGroup(gr) = Group(());
@@ -108,9 +114,15 @@ gap> gr = DigraphCycle(IsImmutableDigraph, 6);
108114
true
109115
110116
# ChainDigraph
117+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
118+
gap> gr := ChainDigraph(0);
119+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
120+
Error, no 1st choice method found for `ChainDigraph' on 1 argument
121+
#@else
111122
gap> gr := ChainDigraph(0);
112123
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
113124
Error, no 1st choice method found for `ChainDigraph' on 1 arguments
125+
#@fi
114126
gap> gr := ChainDigraph(1);
115127
<immutable empty digraph with 1 vertex>
116128
gap> IsEmptyDigraph(gr);
@@ -492,9 +504,15 @@ gap> D := AndrasfaiGraph(3);
492504
vertices, 24 edges>
493505
gap> IsIsomorphicDigraph(D, MobiusLadderGraph(4));
494506
true
507+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
508+
gap> AndrasfaiGraph(0);
509+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
510+
Error, no 1st choice method found for `AndrasfaiGraph' on 1 argument
511+
#@else
495512
gap> AndrasfaiGraph(0);
496513
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
497514
Error, no 1st choice method found for `AndrasfaiGraph' on 1 arguments
515+
#@fi
498516
499517
# BinomialTreeGraph
500518
gap> D := BinomialTreeGraph(6);
@@ -509,9 +527,15 @@ gap> DigraphEdges(D);
509527
[ 15, 13 ], [ 15, 16 ], [ 16, 15 ] ]
510528
gap> BinomialTreeGraph(1);
511529
<immutable empty digraph with 1 vertex>
530+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
531+
gap> BinomialTreeGraph(0);
532+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
533+
Error, no 1st choice method found for `BinomialTreeGraph' on 1 argument
534+
#@else
512535
gap> BinomialTreeGraph(0);
513536
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
514537
Error, no 1st choice method found for `BinomialTreeGraph' on 1 arguments
538+
#@fi
515539
516540
# BondyGraph
517541
gap> D := BondyGraph(2);
@@ -585,9 +609,15 @@ gap> D := HalvedCubeGraph(3);
585609
<immutable Hamiltonian symmetric digraph with 4 vertices, 12 edges>
586610
gap> IsIsomorphicDigraph(D, CompleteDigraph(4));
587611
true
612+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
613+
gap> HalvedCubeGraph(-1);
614+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
615+
Error, no 1st choice method found for `HalvedCubeGraph' on 1 argument
616+
#@else
588617
gap> HalvedCubeGraph(-1);
589618
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
590619
Error, no 1st choice method found for `HalvedCubeGraph' on 1 arguments
620+
#@fi
591621

592622
# HanoiGraph
593623
gap> D := HanoiGraph(1);
@@ -602,9 +632,15 @@ gap> IsHamiltonianDigraph(gr);
602632
true
603633
gap> IsPlanarDigraph(DigraphMutableCopy(gr));
604634
true
635+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
636+
gap> HanoiGraph(0);
637+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
638+
Error, no 1st choice method found for `HanoiGraph' on 1 argument
639+
#@else
605640
gap> HanoiGraph(0);
606641
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
607642
Error, no 1st choice method found for `HanoiGraph' on 1 arguments
643+
#@fi
608644

609645
# HelmGraph
610646
gap> D := HelmGraph(6);
@@ -674,9 +710,15 @@ gap> D := LindgrenSousselierGraph(1);
674710
<immutable symmetric digraph with 10 vertices, 30 edges>
675711
gap> AutomorphismGroup(D) = Group([(4, 8)(5, 7)(9, 10), (2, 10, 9)(3, 4, 5, 6, 7, 8), (1, 2, 3, 4, 10)(5, 7, 9, 6, 8)]);
676712
true
713+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
714+
gap> LindgrenSousselierGraph(0);
715+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
716+
Error, no 1st choice method found for `LindgrenSousselierGraph' on 1 argument
717+
#@else
677718
gap> LindgrenSousselierGraph(0);
678719
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
679720
Error, no 1st choice method found for `LindgrenSousselierGraph' on 1 arguments
721+
#@fi
680722
gap> LindgrenSousselierGraph(3);
681723
<immutable symmetric digraph with 22 vertices, 70 edges>
682724
gap> IsIsomorphicDigraph(LindgrenSousselierGraph(1), GeneralisedPetersenGraph(5, 2));
@@ -719,9 +761,15 @@ gap> IsIsomorphicDigraph(D, DigraphSymmetricClosure(ChainDigraph(4)));
719761
true
720762
gap> PathGraph(1);
721763
<immutable empty digraph with 1 vertex>
764+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
765+
gap> PathGraph(0);
766+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
767+
Error, no 1st choice method found for `PathGraph' on 1 argument
768+
#@else
722769
gap> PathGraph(0);
723770
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
724771
Error, no 1st choice method found for `PathGraph' on 1 arguments
772+
#@fi
725773

726774
# PermutationStarGraph
727775
gap> D := PermutationStarGraph(3, 2);
@@ -785,9 +833,15 @@ gap> D := WalshHadamardGraph(2);
785833
<immutable symmetric digraph with 8 vertices, 16 edges>
786834
gap> IsIsomorphicDigraph(D, CycleGraph(8));
787835
true
836+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
837+
gap> WalshHadamardGraph(0);
838+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
839+
Error, no 1st choice method found for `WalshHadamardGraph' on 1 argument
840+
#@else
788841
gap> WalshHadamardGraph(0);
789842
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
790843
Error, no 1st choice method found for `WalshHadamardGraph' on 1 arguments
844+
#@fi
791845
792846
# WebGraph
793847
gap> D := WebGraph(3);

tst/standard/io.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,15 @@ 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+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
468+
gap> TCodeDecoder(3);
469+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
470+
Error, no 1st choice method found for `TCodeDecoder' on 1 argument
471+
#@else
467472
gap> TCodeDecoder(3);
468473
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
469474
Error, no 1st choice method found for `TCodeDecoder' on 1 arguments
475+
#@fi
470476
gap> TCodeDecoder("gr 5");
471477
Error, the 2nd argument <s> must be a string of at least two space-separated n\
472478
on-negative integers,

tst/standard/oper.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,9 +2880,15 @@ gap> IsOrderFilter(D, [1, 4]);
28802880
false
28812881
gap> IsOrderFilter(D, [4]);
28822882
false
2883+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
2884+
gap> IsOrderFilter(4);
2885+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
2886+
Error, no 1st choice method found for `IsOrderFilter' on 1 argument
2887+
#@else
28832888
gap> IsOrderFilter(4);
28842889
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
28852890
Error, no 1st choice method found for `IsOrderFilter' on 1 arguments
2891+
#@fi
28862892
gap> IsOrderFilter(D, 4);
28872893
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
28882894
Error, no 1st choice method found for `IsOrderFilter' on 2 arguments

tst/standard/weights.tst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,17 @@ gap> EdgeWeightedDigraphShortestPath(d, 1, 2);
253253
# Shortest paths: negative cycle
254254
gap> d := EdgeWeightedDigraph([[2], [3], [1]], [[-3], [-5], [-7]]);
255255
<immutable digraph with 3 vertices, 3 edges>
256+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
257+
gap> EdgeWeightedDigraphShortestPaths(d);
258+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
259+
Error, no 2nd choice method found for `EdgeWeightedDigraphShortestPaths' on 1 \
260+
argument
261+
#@else
256262
gap> EdgeWeightedDigraphShortestPaths(d);
257263
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
258264
Error, no 2nd choice method found for `EdgeWeightedDigraphShortestPaths' on 1 \
259265
arguments
266+
#@fi
260267
261268
# Shortest paths: source not in graph neg int
262269
gap> EdgeWeightedDigraphShortestPaths(d, -1);

0 commit comments

Comments
 (0)