From 88ad2fd28d7850a6a8bdf51eefba86c6b8f8726d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 1 Oct 2026 22:11:13 +0200 Subject: [PATCH] PackageInfo.g: add SOTGrps to SuggestedOtherPackages This way it is loaded by default for most users. SglPPow is not suggested: it would pull its own suggestions LieRing, LiePRing and, through LiePRing, Singular into every GAP startup. With SOTGrps loaded, two test files no longer described the situation they assumed, so both now hide the layers other packages register and put them back afterwards: - addlayer.tst spells out the layer list around its stand-in layers, and SOTGrps took a slot in it. Its restore step rebuilt SMALL_GROUPS_LAYERS from scratch, which dropped foreign layers for every later test file; it now puts back the record it saved. - small.tst lists the orders this library has no groups or no identification for, and SOTGrps covers some of them, 2662 = 2*11^3 among them. Assisted-by: Claude Code (Opus 5) Assisted-by: Claude Code (Opus 5.5) --- CHANGES.md | 5 +++++ PackageInfo.g | 4 ++-- tst/addlayer.tst | 11 ++++++++++- tst/small.tst | 8 ++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index be66439..4c96263 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ This file describes changes in the smallgrp package. +## Unreleased + + - Suggest the package `SOTGrps`, which extends the Small Groups Library + by further orders + ## 1.7.0 (2026-08-18) - Added `SmallGroupsAddLayer` as a clean interface for extending the diff --git a/PackageInfo.g b/PackageInfo.g index 7f5edb0..8d4274a 100644 --- a/PackageInfo.g +++ b/PackageInfo.g @@ -10,7 +10,7 @@ SetPackageInfo( rec( PackageName := "SmallGrp", Subtitle := "The GAP Small Groups Library", -Version := "1.7.0", +Version := "1.7.0dev", Date := "18/08/2026", # dd/mm/yyyy format License := "Artistic-2.0", @@ -119,7 +119,7 @@ PackageDoc := rec( Dependencies := rec( GAP := ">= 4.12", NeededOtherPackages := [ ], - SuggestedOtherPackages := [ ], + SuggestedOtherPackages := [ [ "sotgrps", ">= 1.4" ] ], ExternalConditions := [ ], ), diff --git a/tst/addlayer.tst b/tst/addlayer.tst index a455e7a..7145d05 100644 --- a/tst/addlayer.tst +++ b/tst/addlayer.tst @@ -1,7 +1,16 @@ gap> START_TEST("addlayer.tst"); gap> saved := rec( layers := ShallowCopy( SMALL_GROUPS_LAYER_LIST ), +> byName := ShallowCopy( SMALL_GROUPS_LAYERS ), > avail := ShallowCopy( SMALL_AVAILABLE_FUNCS ) );; +# +# Other packages -- SOTGrps, say -- register layers of their own. Hide them +# for this test, so that the stand-ins below are the only company the layer +# of this library has. +# +gap> SMALL_GROUPS_LAYERS := rec( SmallGrp := SMALL_GROUPS_LAYERS.SmallGrp );; +gap> SMALL_GROUPS_LAYER_LIST := [ SMALL_GROUPS_LAYERS.SmallGrp ];; + # # The layers below are stand-ins. None of the orders they claim -- 2016, # 2025, 2040 -- has a layer in this library, and none of them hands out all @@ -295,7 +304,7 @@ Error, .idAvailable is of no use without .id # put the library back as it was, so the stand-ins do not follow the rest of # the tests around # -gap> SMALL_GROUPS_LAYERS := rec( SmallGrp := saved.layers[1] );; +gap> SMALL_GROUPS_LAYERS := saved.byName;; gap> SMALL_GROUPS_LAYER_LIST := saved.layers;; gap> SMALL_AVAILABLE_FUNCS := saved.avail;; gap> List( [ 2016, 2025, 2040, 2052, 2064, 2072 ], SmallGroupsAvailable ); diff --git a/tst/small.tst b/tst/small.tst index ef53352..2fe4e6e 100644 --- a/tst/small.tst +++ b/tst/small.tst @@ -2,6 +2,13 @@ # gap> START_TEST("small.tst"); +# +# What is available below is the coverage of this library, so hide the layers +# other packages -- SOTGrps, say -- register. +# +gap> savedLayers := ShallowCopy( SMALL_GROUPS_LAYER_LIST );; +gap> SMALL_GROUPS_LAYER_LIST := [ SMALL_GROUPS_LAYERS.SmallGrp ];; + ################################################################################ # SMALL_AVAILABLE ################################################################################ @@ -374,4 +381,5 @@ gap> FrattinifactorId(H); Error, FrattinifactorId: IdGroup for groups of size 512 not available # +gap> SMALL_GROUPS_LAYER_LIST := savedLayers;; gap> STOP_TEST("small.tst");