I wrote this small function

def test(p):
    """
    >>> var('x')
    x
    >>> test(1/2*x)
    1/2*x
    """
    print p

and run doctest on it and receives the following result

File "test.py", line 7, in test.test
Failed example:
    test(1/2*x)
Expected:
    1/2*x
Got:
    0    <========== Why did it get 0 here ?  
**********************************************************************
1 items had failures:
   1 of   2 in test.test
***Test Failed*** 1 failures.
TestResults(failed=1, attempted=2)



what's the reason and how to get around it ?    Thanks  



-- 
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-support
URL: http://www.sagemath.org

Reply via email to