Skip to content

Commit

Permalink
FIX: Ensure finiteness test in defalut method for Struct.Desc. does n…
Browse files Browse the repository at this point in the history
…ot avoid

method selection. Also nice method for Struct.Desc.

This fixes #973

Impies subsequent fix in test file
  • Loading branch information
hulpke committed Dec 4, 2016
1 parent c854936 commit 8a723f6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/grpnames.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,11 @@ InstallMethod( StructureDescription,
k, # maximal power of d in Size(G)
pi; # subset of primes

if not HasIsFinite(G) and IsFinite(G) then
#ensure higher ranked methods also get a finiteness test
return StructureDescription(G);
fi;

insertsep := function ( strs, sep, brack )

local s, i;
Expand Down
7 changes: 7 additions & 0 deletions lib/grpnice.gi
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,13 @@ end);
AttributeMethodByNiceMonomorphism( Size,
[ IsGroup ] );

#############################################################################
##
#M StructureDescription( <G> )
##
AttributeMethodByNiceMonomorphism( StructureDescription,
[ IsGroup ] );


#############################################################################
##
Expand Down
2 changes: 1 addition & 1 deletion tst/teststandard/bugfix.tst
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ gap> StructureDescription(testG(8,2));
gap> StructureDescription(testG(8,3));
"C3 x QD16"
gap> StructureDescription(testG(8,4));
"((C16 x C2) : C2) : C2"
"((C16 : C2) : C2) : C2"

# 2006/02/27 (AH)
gap> RepresentativeAction(Group(()), [1], [2], OnSets);;
Expand Down

0 comments on commit 8a723f6

Please sign in to comment.