Skip to content

Commit 311bf90

Browse files
committed
Update test output for compatibility with pluralization and formatting changes in GAP
1 parent 271c5b9 commit 311bf90

File tree

12 files changed

+130
-0
lines changed

12 files changed

+130
-0
lines changed

tst/standard/attributes/translat.tst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ gap> Size(GeneratorsOfSemigroup(H));
6969
9
7070

7171
# Monogenic semigroups
72+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
73+
gap> S := MonogenicSemigroup(6, 3);
74+
<commutative non-regular transformation semigroup of size 8, degree 9 with
75+
1 generator>
76+
#@else
7277
gap> S := MonogenicSemigroup(6, 3);
7378
<commutative non-regular transformation semigroup of size 8, degree 9 with 1
7479
generator>
80+
#@fi
7581
gap> L := LeftTranslations(S);
7682
<the semigroup of left translations of <commutative non-regular
7783
transformation semigroup of size 8, degree 9 with 1 generator>>
@@ -126,9 +132,15 @@ gap> L := LeftTranslations(S);
126132
<the semigroup of left translations of <regular semigroup with 4 generators>>
127133
gap> Size(L);
128134
81
135+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
136+
gap> R := RightTranslations(S);
137+
<the semigroup of right translations of <0-simple regular semigroup with
138+
4 generators>>
139+
#@else
129140
gap> R := RightTranslations(S);
130141
<the semigroup of right translations of <0-simple regular semigroup with 4
131142
generators>>
143+
#@fi
132144
gap> Size(R);
133145
81
134146
gap> S := ReesZeroMatrixSemigroup(G, mat);;

tst/standard/elements/bipart.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,15 @@ gap> BipartitionByIntRep([1, 2, 3]);
497497
Error, the degree of a bipartition must be even, found 3
498498

499499
# bipartition: BipartitionByIntRep 2/5
500+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
501+
gap> BipartitionByIntRep([1, 2, 3, "a"]);
502+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
503+
Error, no 1st choice method found for `BipartitionByIntRep' on 1 argument
504+
#@else
500505
gap> BipartitionByIntRep([1, 2, 3, "a"]);
501506
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
502507
Error, no 1st choice method found for `BipartitionByIntRep' on 1 arguments
508+
#@fi
503509

504510
# bipartition: BipartitionByIntRep 3/5
505511
gap> BipartitionByIntRep([1, 2, 3, 5]);

tst/standard/elements/maxplusmat.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,15 @@ false
454454
# maxplusmat: RadialEigenvector for a max-plus matrix with SpectralRadius = 0
455455
gap> RadialEigenvector(Matrix(IsMaxPlusMatrix, [[0, -3], [-2, -10]]));
456456
[ 0, -2 ]
457+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
458+
gap> RadialEigenvector(Matrix(IsMaxPlusMatrix, [[3, -3], [-2, -10]]));
459+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
460+
Error, no 2nd choice method found for `RadialEigenvector' on 1 argument
461+
#@else
457462
gap> RadialEigenvector(Matrix(IsMaxPlusMatrix, [[3, -3], [-2, -10]]));
458463
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
459464
Error, no 2nd choice method found for `RadialEigenvector' on 1 arguments
465+
#@fi
460466
gap> SpectralRadius(Matrix(IsMaxPlusMatrix, [[0, -3], [-2, -10]]));
461467
0
462468

tst/standard/elements/pbr.tst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ gap> DegreeOfPBRCollection([x]);
5656
2
5757
gap> DegreeOfPBRCollection([y]);
5858
3
59+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
60+
gap> DegreeOfPBRCollection([x, y]);
61+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
62+
Error, no 1st choice method found for `DegreeOfPBRCollection' on 1 argument
63+
#@else
5964
gap> DegreeOfPBRCollection([x, y]);
6065
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
6166
Error, no 1st choice method found for `DegreeOfPBRCollection' on 1 arguments
67+
#@fi
6268
gap> coll := [x, y];;
6369
gap> IsPBRCollection(coll);
6470
false
@@ -317,27 +323,45 @@ gap> Inverse(x);
317323
fail
318324

319325
# pbr, EmptyPBR, 1
326+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
327+
gap> EmptyPBR(0);
328+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
329+
Error, no 1st choice method found for `EmptyPBR' on 1 argument
330+
#@else
320331
gap> EmptyPBR(0);
321332
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
322333
Error, no 1st choice method found for `EmptyPBR' on 1 arguments
334+
#@fi
323335
gap> EmptyPBR(1);
324336
PBR([ [ ] ], [ [ ] ])
325337
gap> EmptyPBR(2);
326338
PBR([ [ ], [ ] ], [ [ ], [ ] ])
327339

328340
# pbr, IdentityPBR, 1
341+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
342+
gap> IdentityPBR(0);
343+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
344+
Error, no 1st choice method found for `IdentityPBR' on 1 argument
345+
#@else
329346
gap> IdentityPBR(0);
330347
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
331348
Error, no 1st choice method found for `IdentityPBR' on 1 arguments
349+
#@fi
332350
gap> IdentityPBR(1);
333351
PBR([ [ -1 ] ], [ [ 1 ] ])
334352
gap> IdentityPBR(2);
335353
PBR([ [ -1 ], [ -2 ] ], [ [ 1 ], [ 2 ] ])
336354

337355
# pbr, UniversalPBR, 1
356+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
357+
gap> UniversalPBR(0);
358+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
359+
Error, no 1st choice method found for `UniversalPBR' on 1 argument
360+
#@else
338361
gap> UniversalPBR(0);
339362
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
340363
Error, no 1st choice method found for `UniversalPBR' on 1 arguments
364+
#@fi
341365
gap> UniversalPBR(1);
342366
PBR([ [ -1, 1 ] ], [ [ -1, 1 ] ])
343367
gap> UniversalPBR(2);

tst/standard/ideals/ideals.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,15 @@ gap> x := Transformation([13, 4, 1, 2, 14, 14, 7, 12, 4, 9, 2, 14, 5, 14, 13,
246246
> 18, 15, 8, 18, 9]);;
247247
gap> y := Transformation([13, 15, 7, 18, 4, 2, 8, 12, 10, 7, 8, 11, 12, 12, 17,
248248
> 6, 13, 9, 16, 13]);;
249+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
250+
gap> T := DirectProduct(Semigroup(x), Semigroup(y));
251+
<commutative transformation semigroup of size 45, degree 40 with
252+
13 generators>
253+
#@else
249254
gap> T := DirectProduct(Semigroup(x), Semigroup(y));
250255
<commutative transformation semigroup of size 45, degree 40 with 13
251256
generators>
257+
#@fi
252258
gap> z := Transformation([14, 2, 14, 4, 14, 14, 7, 14, 2, 4, 4, 14, 14, 14, 14,
253259
> 14, 14, 14, 14, 4, 32, 31, 28, 28, 31, 32, 32, 31, 31, 28, 32, 28, 31, 31, 28,
254260
> 28, 32, 32, 31, 32]);;

tst/standard/libsemigroups/froidure-pin.tst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,15 @@ gap> S := Semigroup(Matrix(IsMaxPlusMatrix,
445445
<commutative semigroup of 3x3 max-plus matrices with 1 generator>
446446
gap> Enumerate(S, 8194);
447447
<commutative semigroup of 3x3 max-plus matrices with 1 generator>
448+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
449+
gap> en := Enumerator(S);
450+
<enumerator of <commutative semigroup of 3x3 max-plus matrices with
451+
1 generator>>
452+
#@else
448453
gap> en := Enumerator(S);
449454
<enumerator of <commutative semigroup of 3x3 max-plus matrices with 1
450455
generator>>
456+
#@fi
451457
gap> en[100];
452458
Matrix(IsMaxPlusMatrix, [[388, 394, 386], [394, 400, 392], [390, 396, 388]])
453459
gap> PositionCanonical(S, en[100]);
@@ -585,9 +591,15 @@ true
585591
gap> S := Semigroup(Matrix(IsMaxPlusMatrix,
586592
> [[1, -infinity, 2], [-2, 4, -infinity], [1, 0, 3]]));
587593
<commutative semigroup of 3x3 max-plus matrices with 1 generator>
594+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
595+
gap> N := EnumeratorCanonical(S);
596+
<enumerator of <commutative semigroup of 3x3 max-plus matrices with
597+
1 generator>>
598+
#@else
588599
gap> N := EnumeratorCanonical(S);
589600
<enumerator of <commutative semigroup of 3x3 max-plus matrices with 1
590601
generator>>
602+
#@fi
591603
gap> ForAll([1 .. 1000], x -> Position(N, N[x]) = x);
592604
true
593605
gap> ForAll([1 .. 1000], x -> N[x] in N);

tst/standard/semigroups/grpperm.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,15 @@ gap> Range(map);
395395
Group([ (1,3)(2,5)(4,6), (1,4,5)(2,6,3) ])
396396

397397
# IsomorphismPermGroup, infinite 1 / 1
398+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
399+
gap> IsomorphismPermGroup(FreeMonoid(3));
400+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
401+
Error, no 2nd choice method found for `IsomorphismPermGroup' on 1 argument
402+
#@else
398403
gap> IsomorphismPermGroup(FreeMonoid(3));
399404
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
400405
Error, no 2nd choice method found for `IsomorphismPermGroup' on 1 arguments
406+
#@fi
401407

402408
# IsomorphismPermGroup, for a block bijection semigroup
403409
gap> S := Semigroup(Bipartition([[1, 2, -3, -4], [3, 4, -1, -2]]));;

tst/standard/semigroups/semifp.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ gap> IsomorphismFpMonoid(FreeMonoid(2));
6969
<fp monoid with 2 generators and 0 relations of length 2>
7070

7171
# Test IsomorphismFpSemigroup, infinite
72+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
73+
gap> IsomorphismFpSemigroup(FreeInverseSemigroup(2));
74+
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
75+
Error, no 3rd choice method found for `IsomorphismFpSemigroup' on 1 argument
76+
#@else
7277
gap> IsomorphismFpSemigroup(FreeInverseSemigroup(2));
7378
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
7479
Error, no 3rd choice method found for `IsomorphismFpSemigroup' on 1 arguments
80+
#@fi
7581

7682
# BruteForceIsoCheck helper functions
7783
gap> BruteForceIsoCheck := function(iso)

tst/standard/semigroups/semipperm.tst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,9 +2006,15 @@ true
20062006
# semipperm: IsomorphismPartialPermSemigroup, for a zero group, 3
20072007
gap> S := Range(InjectionZeroMagma(SL(2, 2)));
20082008
<SL(2,2) with 0 adjoined>
2009+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
2010+
gap> map := IsomorphismPartialPermSemigroup(S);
2011+
<SL(2,2) with 0 adjoined> -> <inverse partial perm monoid of rank 3 with
2012+
3 generators>
2013+
#@else
20092014
gap> map := IsomorphismPartialPermSemigroup(S);
20102015
<SL(2,2) with 0 adjoined> -> <inverse partial perm monoid of rank 3 with 3
20112016
generators>
2017+
#@fi
20122018
gap> Range(map);
20132019
<inverse partial perm monoid of rank 3 with 3 generators>
20142020
gap> BruteForceIsoCheck(map);
@@ -2138,11 +2144,19 @@ gap> DigraphOfActionOnPoints(S, 3);
21382144
# SmallerDegreePartialPermRepresentation for a non-partial perm semigroup
21392145
gap> S := UniformBlockBijectionMonoid(4);
21402146
<inverse block bijection monoid of degree 4 with 3 generators>
2147+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
2148+
gap> map := SmallerDegreePartialPermRepresentation(S);
2149+
CompositionMapping( <inverse partial perm monoid of size 131, rank 131 with
2150+
3 generators> -> <inverse partial perm monoid of rank 10 with 3 generators>,
2151+
<inverse block bijection monoid of size 131, degree 4 with 3 generators> ->
2152+
<inverse partial perm monoid of size 131, rank 131 with 3 generators> )
2153+
#@else
21412154
gap> map := SmallerDegreePartialPermRepresentation(S);
21422155
CompositionMapping( <inverse partial perm monoid of size 131, rank 131 with 3
21432156
generators> -> <inverse partial perm monoid of rank 10 with 3 generators>,
21442157
<inverse block bijection monoid of size 131, degree 4 with 3 generators> ->
21452158
<inverse partial perm monoid of size 131, rank 131 with 3 generators> )
2159+
#@fi
21462160
gap> S.1 ^ map in Range(map);
21472161
true
21482162

@@ -2154,11 +2168,19 @@ gap> C := SemigroupCongruence(S,
21542168
> Bipartition([[1, -1], [2, -2], [3, -3], [4, -4]])]);
21552169
<2-sided semigroup congruence over <inverse block bijection monoid
21562170
of size 339, degree 4 with 3 generators> with 1 generating pairs>
2171+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
2172+
gap> map := SmallerDegreePartialPermRepresentation(Source(C));
2173+
CompositionMapping( <inverse partial perm monoid of size 339, rank 339 with
2174+
3 generators> -> <inverse partial perm monoid of rank 14 with 3 generators>,
2175+
<inverse block bijection monoid of size 339, degree 4 with 3 generators> ->
2176+
<inverse partial perm monoid of size 339, rank 339 with 3 generators> )
2177+
#@else
21572178
gap> map := SmallerDegreePartialPermRepresentation(Source(C));
21582179
CompositionMapping( <inverse partial perm monoid of size 339, rank 339 with 3
21592180
generators> -> <inverse partial perm monoid of rank 14 with 3 generators>,
21602181
<inverse block bijection monoid of size 339, degree 4 with 3 generators> ->
21612182
<inverse partial perm monoid of size 339, rank 339 with 3 generators> )
2183+
#@fi
21622184
gap> List(GeneratingPairsOfSemigroupCongruence(C), x -> OnTuples(x, map));
21632185
[ [ <empty partial perm>,
21642186
<identity partial perm on

tst/standard/semigroups/semirms.tst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,9 +2910,15 @@ gap> S := Monoid([
29102910
> Transformation([2, 3, 3, 1]), Transformation([3, 2, 3, 1]),
29112911
> Transformation([3, 3, 1, 2]), Transformation([3, 4, 1, 1]),
29122912
> Transformation([4, 1, 2, 2]), Transformation([4, 2, 3, 3])]);;
2913+
#@if CompareVersionNumbers(ReplacedString(GAPInfo.Version, "dev", ""), "4.16")
2914+
gap> R := ReesMatrixSemigroup(S, [[IdentityTransformation]]);
2915+
<Rees matrix semigroup 1x1 over <transformation monoid of degree 4 with
2916+
8 generators>>
2917+
#@else
29132918
gap> R := ReesMatrixSemigroup(S, [[IdentityTransformation]]);
29142919
<Rees matrix semigroup 1x1 over <transformation monoid of degree 4 with 8
29152920
generators>>
2921+
#@fi
29162922
gap> IsIdempotentGenerated(R);
29172923
true
29182924

0 commit comments

Comments
 (0)