#12149: float('nan')>1 crashes Sage.
--------------------------------+-------------------------------------------
Reporter: was | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-4.8
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: William Stein
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Changes (by SimonKing):
* status: needs_review => needs_work
Comment:
It needs work. I find the following errors:
{{{
$ ./sage -t -long devel/sage/sage/functions/min_max.py
sage -t -long "devel/sage/sage/functions/min_max.py"
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 22:
sage: min_symbolic(3,5,x)
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 74:
sage: min_symbolic(3,5,x)
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 78:
sage: min_symbolic([3,5,x])
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 237:
sage: min_symbolic(3, x).subs(x=5)
Expected:
3
Got:
inf
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 239:
sage: min_symbolic(3, 5, x)
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 241:
sage: min_symbolic([3,5,x])
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 259:
sage: t.subs(x=3) # indirect doctest
Expected:
3
Got:
inf
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 261:
sage: min_symbolic(5,3)
Expected:
3
Got:
inf
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 265:
sage: u.subs(x=-1)
Expected:
-1
Got:
0
**********************************************************************
File
"/mnt/local/king/SAGE/rebase/sage-4.8.alpha3/devel/sage/sage/functions/min_max.py",
line 269:
sage: min_symbolic([3,x])
Expected:
min(x, 3)
Got:
min(x, inf)
**********************************************************************
4 items had failures:
1 of 5 in __main__.example_0
2 of 19 in __main__.example_1
3 of 9 in __main__.example_5
4 of 11 in __main__.example_6
***Test Failed*** 10 failures.
For whitespace errors, see the file
/mnt/local/king/.sage/tmp/min_max_5906.py
[2.4 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12149#comment:22>
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.