#8790: improve doctest coverage of logic/logic.py
--------------------------------------------------+------------------------
       Reporter:  mvngu                           |        Owner:  mvngu
           Type:  enhancement                     |       Status:  new
       Priority:  major                           |    Milestone:  sage-6.2
      Component:  documentation                   |   Resolution:
       Keywords:  beginner doctest documentation  |    Merged in:
        Authors:                                  |    Reviewers:
Report Upstream:  N/A                             |  Work issues:
         Branch:                                  |       Commit:
   Dependencies:                                  |     Stopgaps:
--------------------------------------------------+------------------------
Changes (by rws):

 * cc: rws (added)


Old description:

> As the subject says. Currently, the coverage of `sage/logic/logic.py` in
> Sage 4.4 is:
> {{{
> [mvngu@sage sage-4.4]$ ./sage -coverage devel/sage-
> main/sage/logic/logic.py
> ----------------------------------------------------------------------
> devel/sage-main/sage/logic/logic.py
> ERROR: Please add a `TestSuite(s).run()` doctest.
> SCORE devel/sage-main/sage/logic/logic.py: 16% (3 of 18)
>
> Missing documentation:
>          * combine(self, statement1, statement2):
>          * simplify(self, table):
>          * prove(self, statement):
>

> Missing doctests:
>          * get_bit(x, c):
>          * eval(toks):
>          * eval_ltor_toks(lrtoks):
>          * reduce_bins(lrtoks):
>          * reduce_monos(lrtoks):
>          * eval_mon_op(args):
>          * eval_bin_op(args):
>          * eval_and_op(lval, rval):
>          * eval_or_op(lval, rval):
>          * eval_ifthen_op(lval, rval):
>          * eval_iff_op(lval, rval):
>          * tokenize(s, toks):
> }}}
>
> This needs to be coordinated with #8797.

New description:

 As the subject says. Currently, the coverage of `sage/logic/logic.py` in
 Sage 4.4 is:

 {{{
 [mvngu@sage sage-4.4]$ ./sage -coverage devel/sage-
 main/sage/logic/logic.py
 ----------------------------------------------------------------------
 devel/sage-main/sage/logic/logic.py
 ERROR: Please add a `TestSuite(s).run()` doctest.
 SCORE devel/sage-main/sage/logic/logic.py: 16% (3 of 18)

 Missing documentation:
          * combine(self, statement1, statement2):   see #15262
          * simplify(self, table):
          * prove(self, statement):


 Missing doctests:
          * get_bit(x, c):
          * eval(toks):
          * eval_ltor_toks(lrtoks):
          * reduce_bins(lrtoks):
          * reduce_monos(lrtoks):
          * eval_mon_op(args):
          * eval_bin_op(args):
          * eval_and_op(lval, rval):
          * eval_or_op(lval, rval):
          * eval_ifthen_op(lval, rval):
          * eval_iff_op(lval, rval):
          * tokenize(s, toks):
 }}}
 This needs to be coordinated with #8797.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/8790#comment:8>
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