#10983: new doctest for french book about Sage
-------------------------------------------------+-------------------------
       Reporter:  casamayou                      |        Owner:  mvngu
           Type:  enhancement                    |       Status:
       Priority:  major                          |  needs_work
      Component:  doctest coverage               |    Milestone:  sage-5.13
       Keywords:                                 |   Resolution:
        Authors:  Alexandre Casamayou, Marc      |    Merged in:
  Mezzarobba, Paul Zimmermann                    |    Reviewers:  Dmitrii
Report Upstream:  N/A                            |  Pasechnik
         Branch:                                 |  Work issues:
   Dependencies:                                 |       Commit:
                                                 |     Stopgaps:
-------------------------------------------------+-------------------------

Comment (by dimpase):

 Replying to [comment:30 chapoton]:
 > I have made a new patch with correct indentations.
 >
 > Unfortunately, there are now 2 doctest errors with simplify_full !!!

 How about the following changes: (I suppose this also means minor
 corrections to the main text, which I can't do)

 {{{
 diff --git a/sage/tests/french_book/calculus_doctest.py
 b/sage/tests/french_book/calculus_doctest.py
 --- a/sage/tests/french_book/calculus_doctest.py
 +++ b/sage/tests/french_book/calculus_doctest.py
 @@ -643,7 +643,7 @@
      sage: assume(8*n+1>0)
      sage: u(n) = integrate((4*sqrt(2)-8*t^3-4*sqrt(2)*t^4\
      ....:                  -8*t^5) * t^(8*n), t, 0, 1/sqrt(2))
 -    sage: (u(n)-v(n)).simplify_full()
 +    sage: (u(n)-v(n)).simplify_exp()
      0

  Sage example in ./sol/calculus.tex, line 258::
 @@ -652,8 +652,8 @@
      sage: J = integrate((4*sqrt(2)-8*t^3 \
      ....:      - 4*sqrt(2)*t^4-8*t^5)\
      ....:      / (1-t^8), t, 0, 1/sqrt(2))
 -    sage: J.simplify_full()
 -    pi + 2*log(sqrt(2) + 1) + 2*log(sqrt(2) - 1)
 +    sage: J.simplify_log().simplify_full()
 +    pi

  Sage example in ./sol/calculus.tex, line 272::

 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/10983#comment:32>
Sage <http://www.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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to