#14205: polybori doctests involve randomness
---------------------------+------------------------------------------------
Reporter: tkluck | Owner: AlexGhitza
Type: enhancement | Status: new
Priority: minor | Milestone: sage-5.8
Component: algebra | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
---------------------------+------------------------------------------------
As discusses in #13767, there is some doctests for the `random_set`
function in polybori that have inherent random results. Because of that,
they might break if the implementation of random functions changes, such
as what happened in that ticket.
This is a rare occasion, but still it might be worthwhile to change these
kind of doctests to only check for documented behavior.
For example, the doctests could check that `result = random_set(monomial,
n)` should obey `len(result) == n` and
`result.diff(monomial.divisors()).empty()`. (suggested by Alexander
Dreyer)
Or we could test against theorems (such as: One has random data, but the
test is using an identity that must hold for any data). (suggested by
Simon King)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14205>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.