Skip to content

Commit

Permalink
Fix EpimorphismSchurCover with two arguments for p-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Sep 2, 2023
1 parent 597ea1a commit 6c29511
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/schur.gi
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,8 @@ local G,pl;
G:=arg[1];
if not IsFinite(G) then
Error("cover is only defined for finite groups");
elif Size(G)=1 then
elif IsTrivial(G) then

Check warning on line 621 in lib/schur.gi

View check run for this annotation

Codecov / codecov/patch

lib/schur.gi#L621

Added line #L621 was not covered by tests
return IdentityMapping(G);
elif IsPGroup(G) then
TryNextMethod(); # we recursively call the algorithm for the p-sylow
fi;
Info(InfoWarning,1,"Warning: EpimorphismSchurCover via Holt's algorithm is under construction");
if Length(arg)>1 then
Expand Down
24 changes: 24 additions & 0 deletions tst/testbugfix/2023-09-01-EpimorphismSchurCover.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
gap> G:=SmallGroup(4,2);;
gap> epi:=EpimorphismSchurCover(G,[2]);;
#I Warning: EpimorphismSchurCover via Holt's algorithm is under construction
gap> Size(Kernel(epi));
2

#
gap> epi:=EpimorphismSchurCover(AlternatingGroup(5), [2,3,5,7]);;
#I Warning: EpimorphismSchurCover via Holt's algorithm is under construction
gap> Size(Kernel(epi));
2

#
gap> epi:=EpimorphismSchurCover(AlternatingGroup(5), [3,5,7]);;
#I Warning: EpimorphismSchurCover via Holt's algorithm is under construction
gap> Size(Kernel(epi));
1

#
gap> epi:=EpimorphismSchurCover(SylowSubgroup(AlternatingGroup(5),2), [2,3,5,7]);;
#I Warning: EpimorphismSchurCover via Holt's algorithm is under construction
gap> Size(Kernel(epi));
2

0 comments on commit 6c29511

Please sign in to comment.