Skip to content

Commit

Permalink
Add CanComputeSize to Socle testing conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
hungaborhorvath committed Jan 20, 2016
1 parent 3f8b887 commit a9ef69c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/grp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1592,12 +1592,13 @@ end );
##
InstallMethod( Socle, "for finite nilpotent groups",
[ IsGroup ],
RankFilter( IsGroup and IsFinite and IsNilpotentGroup ) -
RankFilter( IsGroup ),
RankFilter( IsGroup and CanComputeSize and IsFinite and
IsNilpotentGroup ) - RankFilter( IsGroup ),
function(G)
local H, prodH;

if not IsFinite(G) or not IsNilpotentGroup(G) then
if not CanComputeSize(G) or not IsFinite(G)
or not IsNilpotentGroup(G) then
TryNextMethod();
fi;

Expand Down

0 comments on commit a9ef69c

Please sign in to comment.