What's the standard solution for this?I don't know of any standard solution, I generally sort the items in
some ways, or add the result, that has to be equal:
True>>r = foo()
r == {'object': 'rain', 'location': 'Spain', 'subloc': 'train'}
Does doctest have some special way to tell it to consider the result *A more general solution like this for sets/dics may become useful...
as a dictionary rather than a string? *Or something else?
do you have any idea regarding how to design it?
Bye,
bearophile