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.
You're misreading the two tests and assuming that they're the same but expecting two different results. They're not the same, hence the different expectations.
If you don't yet see it, try replacing the call operators with add operators and add newlines after the semicolons - thus presenting it in a more familiar format and also forcing you to read it as part of editing it.
I don'tknow about C++ tests, but at least in javascript:
There is no
a(3)
call there.Do these tests contradict each other?
must_be_able_to_store_curried_functions
auto a = add(1)(2); a(3) == 6
Expected: equal to 6
Actual: 3
//////
must_be_able_to_store_values
auto a = add(1)(2); a(3); a == 3
auto b = add(3)(4); b == 7
Test Passed