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.
Lots of specs aren't even mentioned in the description or sample tests, e.g:
fulfill
beforewhen
should trigger the callback as wellfulfill
with no argumentsThis requirement is nonsensical: a
Future
is not supposed to leak its registered callback functions out (just think ofPromise
); however there are no ways to chain downstream into an existingFuture
likePromise.prototype.then
, hence it's not possible to know when an existingFuture
is fulfilled besides the instance itself, andJoin
cannot be implemented.Edit: okay it just got even more nonsensical:
Join
is expected to take in a bunch ofFuture
s withoutwhen
called and then be supplied with awhen
function and set eachFuture
's callback with it? Then the two of them are highly coupled.Test feedback is really bad. Every assertion is using
Test.expect
with no message strings telling where the assertion come from.The
join.when()
function should return errors and values in the same order the callbacks had beenadd
ed even if thefutures
were resolved in different order than they were added.The current test cases are not testing for it so a wrong solution passes.