On Wed, Sep 1, 2010 at 11:00 AM, Simon King <simon.k...@nuigalway.ie> wrote: > But then, what can one do? I.e., how can one safely doctest the > contents of a dictionary D?
You could build the dictionary and check that it is equal to the dictionary in question: sage: L {360: {}, 2520: {0: 'X'}, 'prime': 3} sage: dict([(360, {}), (2520, {0: 'X'}), ('prime', 3)]) == L True --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org