-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed
ConsiderStructureConstants
(#5487)
* fixed `ConsiderStructureConstants` It may happen that `ConsiderStructureConstants` excludes all candidates. Up to now, it was possible that one runs into an error in such a case because the function wants to proceed and tries to access entries in an empty list. Benjamin Sambale found an example in which the `quick` parameter is set to `true` and hence some candidates do not get excluded in an earlier step, but the error could in principle happen also with the default setting `quick:= false`. * improve the documentation of `PossibleClassFunctions` * make those tests happy that do not provide ctbllib * fixed duplicate "for which"
- Loading branch information
1 parent
237f358
commit 8fa61c5
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#@local s, t, maps | ||
gap> START_TEST( "ctblmaps.tst" ); | ||
|
||
# `ConsiderStructureConstants` can unexpectedly exclude all candidates. | ||
# (Benjamin Sambale found examples for that.) | ||
gap> if TestPackageAvailability("ctbllib") <> fail and | ||
> LoadPackage("ctbllib", false) <> fail then | ||
> s:= CharacterTable( "2.A6" );; | ||
> t:= CharacterTable( "Co3" );; | ||
> maps:= [ [ 1, 2, 8, 4, 11, 4, 13, 18, 18, 9, 22, 9, 22 ], | ||
> [ 1, 2, 8, 4, 11, 4, 13, 17, 17, 9, 22, 9, 22 ] ];; | ||
> if Length( ConsiderStructureConstants( s, t, maps, true ) ) <> 0 then | ||
> Error( "test of ConsiderStructureConstants failed" ); | ||
> fi; | ||
> fi; | ||
|
||
# | ||
gap> STOP_TEST( "ctblmaps.tst" ); |