#5454: [with patch, highly positive review] Add coercion documentation to the
reference manual
---------------------------+------------------------------------------------
 Reporter:  mhansen        |       Owner:  tba       
     Type:  enhancement    |      Status:  new       
 Priority:  major          |   Milestone:  sage-4.0.2
Component:  documentation  |    Keywords:            
 Reviewer:                 |      Author:            
   Merged:                 |  
---------------------------+------------------------------------------------

Comment(by ncalexan):

 Unfortunately:

 {{{
 sage -t -long devel/sage/doc/en/reference/coercion.rst
 **********************************************************************
 File "/scratch/ncalexan/sage-4.0.2.alpha1/devel/sage-
 nca/doc/en/reference/coercion.rst", line 206:
     age: cm = sage.structure.element.get_coercion_model()
 Expected:
     <sage.structure.coerce.CoercionModel_cache_maps object at 0x2f65960>
 Got nothing
 **********************************************************************
 File "/scratch/ncalexan/sage-4.0.2.alpha1/devel/sage-
 nca/doc/en/reference/coercion.rst", line 235:
     age: cm.bin_op(77, 9, gcd)
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_3[2]>", line 1, in <module>
         cm.bin_op(Integer(77), Integer(9), gcd)###line 235:
     age: cm.bin_op(77, 9, gcd)
     NameError: name 'cm' is not defined
 **********************************************************************
 File "/scratch/ncalexan/sage-4.0.2.alpha1/devel/sage-
 nca/doc/en/reference/coercion.rst", line 244:
     age: cm.explain(ZZ['x'], ZZ, operator.mul)
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_4[2]>", line 1, in <module>
         cm.explain(ZZ['x'], ZZ, operator.mul)###line 244:
     age: cm.explain(ZZ['x'], ZZ, operator.mul)
     NameError: name 'cm' is not defined
 **********************************************************************
 File "/scratch/ncalexan/sage-4.0.2.alpha1/devel/sage-
 nca/doc/en/reference/coercion.rst", line 250:
     age: cm.explain(ZZ['x'], ZZ, operator.div)
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/ncalexan/sage-4.0.2.alpha1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_4[3]>", line 1, in <module>
         cm.explain(ZZ['x'], ZZ, operator.div)###line 250:
     age: cm.explain(ZZ['x'], ZZ, operator.div)
     NameError: name 'cm' is not defined
 **********************************************************************
 File "/scratch/ncalexan/sage-4.0.2.alpha1/devel/sage-
 nca/doc/en/reference/coercion.rst", line 631:
     age: sage.categories.pushout.pushout(Frac(ZZ['x,y,z']), QQ['z, t'])
 Expected:
     Fraction Field of Multivariate Polynomial Ring in x, y, z, t over
 Rational Field
 Got:
     Univariate Polynomial Ring in t over Fraction Field of Multivariate
 Polynomial Ring in x, y, z over Rational Field
 **********************************************************************
 4 items had failures:
    1 of   6 in __main__.example_2
    1 of   3 in __main__.example_3
    2 of  11 in __main__.example_4
    1 of   3 in __main__.example_6
 ***Test Failed*** 5 failures.
 For whitespace errors, see the file
 /scratch/ncalexan/sage-4.0.2.alpha1/tmp/.doctest_coercion.py
          [1.2 s]

 ----------------------------------------------------------------------

 The following tests failed:

         sage -t -long devel/sage/doc/en/reference/coercion.rst # 5
 doctests failed
 ----------------------------------------------------------------------
 Total time for all tests: 1.5 seconds
 Tests failed!
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5454#comment:10>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to