Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Multi-digit formatting rule is not specified.
Input type is not suitable for the task because
dict
does not guarantee key order, and a certain order is expected out of the keys in the results.It should either be a list, or be an
OrderedDict
(a bad idea), or the key order should be explicitly specified.It is not mentioned that dices can have different number of faces.
But then, why is there a test case of 2 keys in the actual tests? A dice can't have 2 faces.
In the sample tests the keys are strings, but in the random tests they are numbers. This should ideally be consistent, or a note should be made that keys will be of different variables types (and then list the types).
Could do with more coverage in the basic tests. I would add: