Skip to content

Commit 2bc8b5a

Browse files
author
Release Manager
committed
sagemathgh-36991: Fixed doc_test in `database.findstat` by adding new collection This pull request addresses the doctest failures reported when testing the `findstat` module. The failures are related to the addition of a new collection, causing discrepancies in the expected and actual results. The doctest failures were observed with the following optional packages: ``` --optional=4ti2,antic,build,cbc,ccache,cryptominisat,debian,dot2tex,e_an tic,external,fricas,glucose,kissat,latte_int,lidia,normaliz,pip,sage,sag e_numerical_backends_coin,sage_spkg ``` I have updated the doctests to include the new collection in the expected results. Fixes sagemath#36481 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. URL: sagemath#36991 Reported by: Aman Moon Reviewer(s): Martin Rubey
2 parents 0436ccb + fa606f3 commit 2bc8b5a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sage/databases/findstat.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4318,6 +4318,7 @@ def in_range(self, element):
43184318
Cc0027: Signed permutations 4282 True
43194319
Cc0028: Skew partitions 1250 True
43204320
Cc0029: Lattices 1378 True
4321+
Cc0030: Ordered set partitions 5316 True
43214322
"""
43224323
return self._data["Code"].element_level(element) in self._data["LevelsWithSizes"]
43234324

@@ -4711,7 +4712,8 @@ class FindStatCollections(UniqueRepresentation, Parent):
47114712
Cc0026: Decorated permutations,
47124713
Cc0027: Signed permutations,
47134714
Cc0028: Skew partitions,
4714-
Cc0029: Lattices]
4715+
Cc0029: Lattices,
4716+
Cc0030: Ordered set partitions]
47154717
"""
47164718
def __init__(self):
47174719
"""
@@ -4787,7 +4789,8 @@ def _element_constructor_(self, entry):
47874789
Cc0026: Decorated permutations,
47884790
Cc0027: Signed permutations,
47894791
Cc0028: Skew partitions,
4790-
Cc0029: Lattices]
4792+
Cc0029: Lattices,
4793+
Cc0030: Ordered set partitions]
47914794
47924795
sage: FindStatCollection(Permutation([1,2,3])) # optional -- internet
47934796
Cc0001: Permutations

0 commit comments

Comments
 (0)