Skip to content

Commit 7adffba

Browse files
committed
Actually use TestGroupOptions.sizeTests and ..
.. remove the hack in TestGroup which made it look like the recognition was run thrice.
1 parent 174590b commit 7adffba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

gap/base/recognition.gi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ InstallGlobalFunction( "GetCompositionTreeNode",
978978

979979
RECOG.TestGroupOptions := rec(
980980
# Number of times to test whether the recognized size is right
981-
sizeTests := 3,
981+
sizeTests := 1,
982982

983983
# Number of random elements in group to check
984984
# This is used both for the number of elements in the
@@ -1039,11 +1039,8 @@ RECOG.TestGroup := function(g,proj,size, optionlist...)
10391039
if count = -1 then
10401040
return fail;
10411041
fi;
1042-
else
1043-
#Print("Test was OK!\n");
1044-
count := 3; # worked!
10451042
fi;
1046-
until count >= 3;
1043+
until count >= options.sizeTests;
10471044
#View(ri);
10481045
#Print("\n");
10491046
count := 0;

0 commit comments

Comments
 (0)