I don't claim to understand how the doctests are supposed to work, but running the Mathematica interface with --verbose, it seems to me there is very little testing of Mathematica, but there is testing of gap and other stuff unrelated to Mathetatica. Here is the output of the test with --verbose.

Also,

sage: help(mathematica)

is very difficult to understand.

Am I missing something?

dave

sage -t -long --verbose "devel/sage/sage/interfaces/mathematica.py"
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    m = mathematica###line 44:_sage_    >>> m = mathematica
Expecting nothing
ok
Trying:
    m = mathematica###line 57:_sage_    >>> m = mathematica
Expecting nothing
ok
Trying:
    m = mathematica###line 103:_sage_    >>> m = mathematica
Expecting nothing
ok
Trying:
    m = mathematica###line 119:_sage_    >>> m = mathematica
Expecting nothing
ok
Trying:
gp('solve(x=1,2,exp(x)-3*x)')###line 137:_sage_ >>> gp('solve(x=1,2,exp(x)-3*x)')
Expecting:
    1.512134551657842473896739678
ok
Trying:
R = PolynomialRing(ZZ, names=('x',)); (x,) = R._first_ngens(1)###line 157:_sage_ >>> R.<x> = PolynomialRing(ZZ)
Expecting nothing
ok
Trying:
f = (x**Integer(100)+Integer(17)*x+Integer(5))*(x**Integer(100)-Integer(5)*x+Integer(20))###line 158:_sage_ >>> f = (x**100+17*x+5)*(x**100-5*x+20)
Expecting nothing
ok
Trying:
    f###line 159:_sage_    >>> f
Expecting:
    x^200 + 12*x^101 + 25*x^100 - 85*x^2 + 315*x + 100
ok
Trying:
t = '"%s"'%Integer(10)**Integer(10000) # ten thousand character string.###line 205:_sage_ >>> t = '"%s"'%10^10000 # ten thousand character string.
Expecting nothing
ok
Trying:
    def math_bessel_K(nu,x):###line 233:_sage_    >>> def math_bessel_K(nu,x):
          return mathematica(nu).BesselK(x).N(Integer(20)).sage()
Expecting nothing
ok
Trying:
slist = [[Integer(1), Integer(2)], RealNumber('3.'), Integer(4) + I]###line 242:_sage_ >>> slist = [[1, 2], 3., 4 + I]
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
mathematica._function_call_string('Sin', ['x'], [])###line 449:_sage_ >>> mathematica._function_call_string('Sin', ['x'], [])
Expecting:
    'Sin[x]'
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
    set_random_seed(0L)
Expecting nothing
ok
Trying:
    change_warning_output(sys.stdout)
Expecting nothing
ok
3 items had no tests:
    __main__
    __main__.change_warning_output
    __main__.warning_function
13 items passed all tests:
  13 tests in __main__.example_0
   2 tests in __main__.example_1
   2 tests in __main__.example_10
   2 tests in __main__.example_11
   2 tests in __main__.example_12
   2 tests in __main__.example_2
   2 tests in __main__.example_3
   2 tests in __main__.example_4
   2 tests in __main__.example_5
   2 tests in __main__.example_6
   3 tests in __main__.example_7
   2 tests in __main__.example_8
   2 tests in __main__.example_9
38 tests in 16 items.
38 passed and 0 failed.
Test passed.
         [9.0 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 9.0 seconds

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to