# HG changeset patch
# User Marshall Hampton <hamptonio@gmail.com>
# Date 1327452824 21600
# Node ID ba0bcd10d3833ff477ddf18a5728447d4f334980
# Parent 75b29dbaa700aa3a5dd4e5619d4742a50404f8a3
trac #12352: adding some tests for the Qhull optional package
diff git a/sage/tests/qhull_test.py b/sage/tests/qhull_test.py
new file mode 100644


+


 1  """ 
 2  Qhull tests 
 3  
 4  TESTS: 
 5  sage: import sage.tests.benchmark 
 6  sage: testsys = [[exp(t/10)*sin(t),exp(t/10)*cos(t)] for t in srange(0,6*pi,.25)] 
 7  sage: input_sys = '2\n'+str(len(testsys))+'\n'+join([str(q[0]) + ' ' + str(q[1]) for q in testsys],sep='\n') 
 8  sage: from sage.misc.misc import tmp_filename 
 9  sage: tname = tmp_filename() 
 10  sage: f = file(tname,'w') 
 11  sage: f.write(input_sys) 
 12  sage: f.close() 
 13  sage: import subprocess as S 
 14  sage: out = S.check_output('cat %s  qconvex i'%tname, shell=True) 
 15  sage: print(out) 
 16  22 
 17  73 72 
 18  75 74 
 19  74 73 
 20  57 56 
 21  56 55 
 22  54 75 
 23  55 54 
 24  70 69 
 25  67 66 
 26  64 63 
 27  71 70 
 28  72 71 
 29  68 67 
 30  69 68 
 31  65 64 
 32  66 65 
 33  58 57 
 34  59 58 
 35  61 60 
 36  60 59 
 37  62 61 
 38  63 62 
 39  """ 
 40  