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.
The random tests reject my solution despite the output being identical to the expected one, the only difference being the ordering of items in the objects and the arrays. Am I missing something? Has anyone encountered a similar issue?
Java translation
CooffeeScript translation
Approved at 6kyu (average assessed rank).
Added clarifications and changed the structure of the
authorPosts
state to be simpler.The authors state consists of all the authors, posts and comments.
The order of the elements are based on the ordering of the
allIds
arrays. The ordering for them is in order of appearance.If you mean ordering in the
byId
objects, this doesn't obviously matter since they are look-up tables.The
authorPosts
state is now just simply and array of postIds for a user.I updated the description to address all of these points.
Fixed!
You mean
allIds
.Random tests keep generating datasets where authors with the same
username
have different names in the same dataset:user6
has 3 different names in the same object.Some things are not clear from description:
Thank you for the feedback! Issue is fixed now.
I wrote that line at roughly 3AM so it's kinda unclear; it means "distinguish between null/undefined and missing properties when merging".
This can be fixed by adding
chai.config.truncateThreshold = 0
Distinguish how? This really needs to be explained in more detail.
There needs to be better feedback. You can't really debug this.
Oh snaps, this time I'm late for good :(
Loading more items...