Skip to content

Commit

Permalink
One more go at fixing Sage tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 14, 2023
1 parent 579beac commit 291a814
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cython/core/manifold.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,20 @@ cdef class Manifold(Triangulation):
EXAMPLE::
sage: M = Manifold('m004')
sage: M.volume().parent() # doctest: +ELLIPSIS
Real Field with ... bits of precision
sage: R = M.volume().parent()
sage: R.name().startswith('RealField')
True
sage: from snappy.number import SnapPyNumbers
sage: Manifold.use_field_conversion('snappy')
sage: M = Manifold('m004')
sage: M.volume().parent() # doctest: +ELLIPSIS
SnapPy Numbers with ... bits of precision
sage: R = M.volume().parent()
sage: isinstance(R, SnapPyNumbers)
True
sage: Manifold.use_field_conversion('sage')
sage: M = Manifold('m004')
sage: M.volume().parent() # doctest: +ELLIPSIS
Real Field with ... bits of precision
sage: R = M.volume().parent()
sage: R.name().startswith('RealField')
True
"""
number.use_field_conversion(func)

Expand Down

0 comments on commit 291a814

Please sign in to comment.