Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
reviewer's commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Apr 1, 2022
1 parent 32eefce commit a7ecb88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
25 changes: 0 additions & 25 deletions src/sage/combinat/k_regular_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,32 +855,7 @@ def __init__(self, k, *args, **kwds):
sage: from itertools import islice
sage: Seq2 = kRegularSequenceSpace(2, ZZ)
sage: TestSuite(Seq2).run( # long time
....: verbose=True,
....: elements=tuple(islice(Seq2.some_elements(), 4)))
running ._test_additive_associativity() . . . pass
running ._test_an_element() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_construction() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_new() . . . pass
running ._test_nonzero_equal() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_new() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
running ._test_some_elements() . . . pass
running ._test_zero() . . . pass
.. SEEALSO::
Expand Down
7 changes: 3 additions & 4 deletions src/sage/combinat/recognizable_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def __eq__(self, other):
sage: S == S
True
sage: x == None
sage: S == None
False
"""
if other is None:
Expand All @@ -973,7 +973,7 @@ def __eq__(self, other):

def __ne__(self, other):
r"""
Return whether this recognizable series is equal to ``other``.
Return whether this recognizable series is not equal to ``other``.
INPUT:
Expand Down Expand Up @@ -1891,13 +1891,12 @@ def some_elements(self):
210*[] + ...,
2210*[] - 170*[0] + 170*[1] + ...)
"""
from itertools import count, islice
from itertools import islice
from sage.matrix.matrix_space import MatrixSpace
from sage.modules.free_module import FreeModule
yield self.an_element()

C = self.coefficient_ring()
some_elements_base = iter(C.some_elements())
k = len(self.alphabet())
for dim in range(1, 11):
elements_M = MatrixSpace(C, dim).some_elements()
Expand Down

0 comments on commit a7ecb88

Please sign in to comment.