Fixing this problem properly as Martin or Volker suggests is probably the best option but `# random print order` is a good option too, which I was not aware of -- or is this really `# random` with additional explanation?
Is there a complete list of the doc-test modifiers anywhere? I just looked and couldn't find one.I guess that I could just grep through all of the documentation... Andrew On Saturday, 20 April 2019 12:14:53 UTC+10, Nils Bruin wrote: > > On Friday, April 19, 2019 at 5:25:13 PM UTC-7, John H Palmieri wrote: >> >> What does >> >> sage: C >> Set partitions of {'a', 'c', 'b'} >> >> >> reveal? Is it helpful, or can it be omitted? >> >> Adding to that: perhaps it reveals something for the documentation > reader. But in that case the output doesn't need to be tested. The test > comes later by showing that further methods on C have the desired effect. > In that case, > > sage: C # random print order > Set partitions of {'a', 'c', 'b'} > sage: C.cardinality() > 5 > > does the trick AND we keep the output displayed for documentation purposes. > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.