Skip to content

Commit

Permalink
Fix bug in OneCoboundariesCR
Browse files Browse the repository at this point in the history
It which lead to an error in OneCohomologyCR.

Fixes #25
  • Loading branch information
fingolfin committed May 11, 2018
1 parent c85fc56 commit c25979f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
This file describes changes in the GAP package 'polycyclic'.

X.YY (YYYY-MM-D)

* Fixed a bug in OneCoboundariesCR which lead to an error in OneCohomologyCR
* ...

2.13.1 (2018-04-27)

* Removed a regression test case which failed if no other packages are loaded
Expand Down
2 changes: 1 addition & 1 deletion gap/cohom/onecohom.gi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ InstallGlobalFunction( OneCoboundariesEX, function( A )
end );

InstallGlobalFunction( OneCoboundariesCR, function( A )
return OneCoboundariesEX( A );
return OneCoboundariesEX( A ).basis;
end );

#############################################################################
Expand Down
17 changes: 17 additions & 0 deletions tst/bugfix.tst
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,22 @@ gap> N := NormalizerPcpGroup( G, U );;
gap> Images(iso, Normalizer( P2, PreImages(iso, U) )) = N;
true

#
# Fix a bug in OneCoboundariesCR which lead to an error in OneCohomologyCR.
# <https://github.com/gap-packages/polycyclic/issues/25>
#
gap> G:=HeisenbergPcpGroup(1);
Pcp-group with orders [ 0, 0, 0 ]
gap> N:=Center(G);
Pcp-group with orders [ 0 ]
gap> C:=CRRecordBySubgroup(G,N);;
gap> OneCoboundariesCR(C);
[ ]
gap> OneCohomologyCR(C);
rec(
factor := rec( denom := [ ], gens := [ [ 1, 0 ], [ 0, 1 ] ],
imgs := [ [ 1, 0 ], [ 0, 1 ] ], prei := [ [ 1, 0 ], [ 0, 1 ] ],
rels := [ 0, 0 ] ), gcb := [ ], gcc := [ [ 1, 0 ], [ 0, 1 ] ] )

#
gap> STOP_TEST( "bugfix.tst", 10000000);

0 comments on commit c25979f

Please sign in to comment.