Opened 12 years ago

Closed 12 years ago

#5959 closed defect (duplicate)

Better doctest for __cmp__ in

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:

Status badges


From sage-devel, regarding whether


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)

trac_5959.patch (631 bytes) - added by kcrisman 12 years ago.
Based on 3.4.2.rc0

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by kcrisman

Based on 3.4.2.rc0

comment:1 Changed 12 years ago by mabshoff

  • Milestone changed from sage-4.0 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from new to closed

This is superseded by #5966.



Note: See TracTickets for help on using tickets.