#8519: Add a factory of finite/infinite enumerated set (with categories) defines
by Range(begin, end, step)
-----------------------------+----------------------------------------------
Reporter: nborie | Owner: nborie
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.3.4
Component: combinatorics | Keywords: range, categories, set, integer
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by hivert):
Replying to [comment:10 nborie]:
> I will update this code and give IntegerRange the behavior of range() if
and only if someone (else than me) can give me an empty set with
categories which can pass the tests....
> {{{
> sage: TestSuite(Set([])).run()
> The following tests failed: _test_an_element, _test_category,
_test_elements, _test_some_elements
> }}}
For consintency of the category you should use an {{{EnumeratedSet}}}
rather than a {{{Set}}}:
{{{
sage: f = FiniteEnumeratedSet([])
sage: TestSuite(f).run()
[...]
The following tests failed: _test_an_element, _test_elements,
_test_some_elements
}}}
You can't expect to get anything better than that with the current
specification of sets: All those three tests are buggy in the sense that
they suppose that there is at least one element in the set. So forget
about it and don't run TestSuite on an empty set until we fix this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8519#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.