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.
I got that a few times. I think this happens if your code causes the output text to contain any special characters, like {} <> etc. Can't have anyone accidentally or intentionally injecting JS into the site and all. It worked fine once I fixed the code.
Cool, I didn't know about partition
True, also won't work if somebody gave the hash a non-falsey default value
This kata seems to be hopelessly broken right now. Calling Bag.new.count gives NoMethodException, and Bag.new(1,2) gives an exception saying that the ctor wants 0 args, all before anything is even added to the code.
Does anybody know what unit test framework this is using?