#4071: Fix issues in the lisp interface
------------------------+---------------------------------------------------
Reporter: mhansen | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-3.1.2
Component: interfaces | Keywords:
------------------------+---------------------------------------------------
{{{
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 5:
sage: lisp.eval('(* 4 5)')
Expected:
'20'
Got:
'(* 4 5)\r\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\n20'
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 22:
sage: lisp.eval('(+ %s %s)'%(a.name(), b.name()))
Expected:
'8'
Got:
'(+ sage0
sage1)\r\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\n8'
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 27:
sage: lisp.eval('(defun factorial (n) (if (= n 1) 1 (* n (factorial (-
n 1)))))')
Expected:
'FACTORIAL'
Got:
'(defun factorial (n)\x08\x08\x08\x1b[C\x1b[C\x1b[C (if (= n
1)\x08\x08\x08\x08\x08\x08\x08\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C 1
(* n (factorial (- n
1)\x08\x08\x08\x08\x08\x08\x08\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C)\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C)\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C)\r\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C)\r\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\nFACTORIAL'
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 112:
sage: lisp.eval('(+ 2 2)')
Expected:
'4'
Got:
'(+ 2 2)\r\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\x1b[C\n4'
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 390:
sage: one == one
Expected:
True
Got:
False
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 394:
sage: one < two
Expected:
True
Got:
False
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 400:
sage: two == 2
Expected:
True
Got:
False
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/lisp.py", line 420:
sage: lisp(0).bool()
Expected:
False
Got:
True
**********************************************************************
4 items had failures:
3 of 17 in __main__.example_0
1 of 3 in __main__.example_2
3 of 9 in __main__.example_23
1 of 5 in __main__.example_24
***Test Failed*** 8 failures.
For whitespace errors, see the file
/Users/mhansen/sage-3.1.2.rc0/tmp/.doctest_lisp.py
[7.4 s]
exit code: 1024
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4071>
SAGE <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---