# 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
|
|
264 | 264 | sage: a = singular.eval(t) |
265 | 265 | sage: a = singular(t) |
266 | 266 | |
267 | | TESTS: We test an automatic coercion:: |
| 267 | TESTS: |
| 268 | |
| 269 | We test an automatic coercion:: |
268 | 270 | |
269 | 271 | sage: a = 3*singular('2'); a |
270 | 272 | 6 |
… |
… |
|
274 | 276 | 6 |
275 | 277 | sage: type(a) |
276 | 278 | <class 'sage.interfaces.singular.SingularElement'> |
| 279 | |
| 280 | Create a ring over GF(9) to check that ``gftables`` has been installed, |
| 281 | see 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);' |
277 | 285 | """ |
278 | 286 | |
279 | 287 | #We could also do these calculations without using the singular |