Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust tests to work after LoadAllPackages(); #12

Merged
merged 1 commit into from
Dec 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGES to the 'XModAlg' package

## 1.13 -> 1.14
* (02/12/17) adjust test files to work correctly after LoadAllPackages();
* (30/11/17) now requires XMod 2.64
* (01/11/17) now requires Laguna 3.7.0
* (05/10/17) moved testall.g to testing.g and added new testall.g
Expand Down
6 changes: 3 additions & 3 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ PackageName := "XModAlg",
Subtitle := "Crossed Modules and Cat1-Algebras",

Version := "1.14",
Date := "30/11/2017",
Date := "02/12/2017",

## duplicate these values for inclusion in the manual:
## <#GAPDoc Label="PKGVERSIONDATA">
## <!ENTITY VERSION "1.14">
## <!ENTITY ZIPFILENAME "xmodalg-1.14.zip">
## <!ENTITY HTMLFILENAME "xmodalg114.html">
## <!ENTITY RELEASEDATE "30/11/2017">
## <!ENTITY LONGRELEASEDATE "30th November 2017">
## <!ENTITY RELEASEDATE "02/12/2017">
## <!ENTITY LONGRELEASEDATE "2nd December 2017">
## <!ENTITY COPYRIGHTYEARS "2014-2017">
## <#/GAPDoc>

Expand Down
10 changes: 6 additions & 4 deletions lib/alg2map.gi
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ InstallMethod( Display, "display a morphism of pre-crossed modules", true,
[ IsPreXModAlgebraMorphism ], 0,
function( mor )

local morsrc, morrng, gensrc, genrng, P, Q, name, ok;
local morsrc, morrng, gensrc, genrng, imsrc, imrng, P, Q, name, ok;
name := Name( mor );
P := Source( mor );
Q := Range( mor );
Expand All @@ -168,11 +168,13 @@ InstallMethod( Display, "display a morphism of pre-crossed modules", true,
Print( GeneratorsOfAlgebra( Source( Q ) ), "\n" );
Print( " ", GeneratorsOfAlgebra( Range( Q ) ), "\n" );
fi;
imsrc := List( gensrc, s -> Image( morsrc, s ) );
Print( ": Source Homomorphism maps source generators to:\n" );
Print( " ", List( gensrc, s -> Image( morsrc, s ) ), "\n" );
Print( " ", imsrc, "\n" );
imrng := List( genrng, r -> Image( morrng, r ) );
Print( ": Range Homomorphism maps range generators to:\n" );
Print( " ", List( genrng, r -> Image( morrng, r ) ), "\n" );
Print( "\n" );
Print( " ", imrng, "\n" );
Print( "\n" );
end );

#############################################################################
Expand Down
36 changes: 23 additions & 13 deletions tst/cat1.tst
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,29 @@ gap> A := GroupRing( GF(2), Group( (1,2,3)(4,5) ) );
<algebra-with-one over GF(2), with 1 generators>
gap> R := GroupRing( GF(2), Group( (1,2,3) ) );
<algebra-with-one over GF(2), with 1 generators>
gap> f := AllHomsOfAlgebras( A, R );
[ [ (Z(2)^0)*(1,3,2)(4,5) ] -> [ <zero> of ... ], [ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*() ],
[ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*()+(Z(2)^0)*(1,2,3) ],
[ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*()+(Z(2)^0)*(1,2,3)+(Z(2)^0)*(1,3,2) ],
[ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*()+(Z(2)^0)*(1,3,2) ], [ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*(1,2,3) ],
[ (Z(2)^0)*(1,3,2)(4,5) ] -> [ (Z(2)^0)*(1,2,3)+(Z(2)^0)*(1,3,2) ], [ (Z(2)^0)*(1,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
gap> g := AllHomsOfAlgebras( R, A );;
gap> mgig := List( g, h -> MappingGeneratorsImages(h) );;
gap> Print( mgig, "\n" );
[ [ [ (Z(2)^0)*(1,2,3) ], [ <zero> of ... ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*() ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*()+(Z(2)^0)*(1,2,3) ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*()+(Z(2)^0)*(1,2,3)+(Z(2)^0)*(1,3,2) ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*()+(Z(2)^0)*(1,3,2) ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*(1,2,3) ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*(1,2,3)+(Z(2)^0)*(1,3,2) ] ],
[ [ (Z(2)^0)*(1,2,3) ], [ (Z(2)^0)*(1,3,2) ] ] ]
gap> C4 := PreCat1ByTailHeadEmbedding( f[6], f[6], g[8] );
[AlgebraWithOne( GF(2), [ (Z(2)^0)*(1,2,3)(4,5) ] ) -> AlgebraWithOne( GF(2), [ (Z(2)^0)*(1,2,3) ] )]
gap> IsCat1Algebra( C4 );
Expand Down
10 changes: 6 additions & 4 deletions tst/xmod.tst
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ gap> Size( X3 );
gap> IsSubXModAlgebra( X1, X3 );
true

## Chapter 2, Section 2.2.3
## Chapter 2, Section 2.2.4

gap> theta := SourceHom( mor );
[ (Z(2)^0)*<identity> of ...+(Z(2)^0)*f2, (Z(2)^0)*f1+(Z(2)^0)*f2, (Z(2)^0)*f2+(Z(2)^0)*f1*f2 ] ->
[ <zero> of ..., <zero> of ..., <zero> of ... ]
gap> theta := SourceHom( mor );;
gap> Print( MappingGeneratorsImages( theta ), "\n" );
[ [ (Z(2)^0)*<identity> of ...+(Z(2)^0)*f2, (Z(2)^0)*f1+(Z(2)^0)*f2,
(Z(2)^0)*f2+(Z(2)^0)*f1*f2 ],
[ <zero> of ..., <zero> of ..., <zero> of ... ] ]
gap> phi := RangeHom( mor );
[ (Z(2)^0)*f1 ] -> [ (Z(2)^0)*<identity> of ... ]
gap> IsInjective( mor );
Expand Down