Skip to content

Commit

Permalink
Add test for NormaliserSimple2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed May 20, 2021
1 parent e9247f3 commit 60fb46f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tst/quickcheck-norm2.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
gap> LoadPackage("quickcheck", false);;
gap> LoadPackage("graphbacktracking", false);;
gap> lmp := {l...} -> Maximum(1,Maximum(List(l, LargestMovedPoint)));;
gap> QC_Check([IsPermGroup, IsPermGroup],
> function(g1,g2)
> local norm1, norm2, m;
> m := lmp(g1,g2);
> norm1 := Normaliser(g1, g2);
> norm2 := GB_SimpleSearch(PartitionStack(m),
> [BTKit_Con.InGroup(m,g1), GB_Con.NormaliserSimple2(m,g2)]);
> if norm1 <> norm2 then
> return StringFormatted("Expected {}, got {}, from {},{}",norm1,norm2,g1,g2);
> fi;
> return true;
> end);
true

0 comments on commit 60fb46f

Please sign in to comment.