From 247c230f7382db0f056f1e2c81e6868845519350 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Wed, 10 Aug 2011 10:48:55 +0200 Subject: [PATCH] Trac #11645: Add doctest to check that Singular's gftables work --- src/sage/interfaces/singular.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index 736495dde2a..f3cf691bb82 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -264,7 +264,9 @@ sage: a = singular.eval(t) sage: a = singular(t) -TESTS: We test an automatic coercion:: +TESTS: + +We test an automatic coercion:: sage: a = 3*singular('2'); a 6 @@ -274,6 +276,12 @@ 6 sage: type(a) + +Create a ring over GF(9) to check that ``gftables`` has been installed, +see ticket #11645:: + + sage: singular.eval("ring testgf9 = (9,x),(a,b,c,d,e,f),(M((1,2,3,0)),wp(2,3),lp);") + 'ring testgf9 = (9,x),(a,b,c,d,e,f),(M((1,2,3,0)),wp(2,3),lp);' """ #We could also do these calculations without using the singular