Correct doctests with random output
Issue #86
resolved
I just noticed that I wrote some of the doctests for methods that have a random output the wrong way. A #random markup should be used (see : http://www.sagemath.org/doc/developer/coding_basics.html#special-markup-to-influence-tests )
Comments (2)
-
-
reporter - changed status to resolved
Using a preset seed works better.
- Log in to comment
I am completely perplexed by the example provided in the above link. A hash is definitely not random.
But the sentence after the example makes it clear : "the doctesting framework guarantees the state of the pseudorandom number generators".
I think there is no need to add the
# random tag
.Still, may be there is need to fix your doctests.
I can go through that,