Ticket #11645: 11645_doctest.patch

File 11645_doctest.patch, 1.1 KB (added by jdemeyer, 10 years ago)

Doctest to be added

  • sage/interfaces/singular.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1312966135 -7200
    # Node ID 00c446d7921ca61fe9b7778aa39b2b1df8e49950
    # Parent  302f3150bcd8c33997e76002e4b23a9060994284
    Add doctest to check that Singular's gftables work
    
    diff -r 302f3150bcd8 -r 00c446d7921c sage/interfaces/singular.py
    a b  
    264264    sage: a = singular.eval(t)           
    265265    sage: a = singular(t)
    266266
    267 TESTS: We test an automatic coercion::
     267TESTS:
     268
     269We test an automatic coercion::
    268270
    269271    sage: a = 3*singular('2'); a
    270272    6
     
    274276    6
    275277    sage: type(a)
    276278    <class 'sage.interfaces.singular.SingularElement'>
     279
     280Create a ring over GF(9) to check that ``gftables`` has been installed,
     281see ticket #11645::
     282
     283    sage: singular.eval("ring testgf9 = (9,x),(a,b,c,d,e,f),(M((1,2,3,0)),wp(2,3),lp);")
     284    'ring testgf9 = (9,x),(a,b,c,d,e,f),(M((1,2,3,0)),wp(2,3),lp);'
    277285"""
    278286
    279287#We could also do these calculations without using the singular