Opened 12 years ago
Closed 12 years ago
#5959 closed defect (duplicate)
Better doctest for __cmp__ in primes.py
Reported by: | kcrisman | Owned by: | mabshoff |
---|---|---|---|
Priority: | minor | Milestone: | sage-duplicate/invalid/wontfix |
Component: | doctest coverage | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
From sage-devel, regarding whether
Primes()>x^2+x
or not
You should change the doctest to
sage: P != x2 + x True
The comparison is completely arbitrary and will be machine specific. However equality or not is not arbitrary.
sage: cmp(SR(3), x) in [-1,1] True
Attachments (1)
Change History (2)
Changed 12 years ago by
comment:1 Changed 12 years ago by
- Milestone changed from sage-4.0 to sage-duplicate/invalid/wontfix
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Based on 3.4.2.rc0