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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Agree. Schema is subject to change, so developers better specify the column names.
This comment is hidden because it contains spoiler information about the solution
Haskell:
I keep getting:
should work for random collections and ipp values
✘ Falsifiable (after 1 test):
expected: Nothing
but got: Just 0
[]
Positive {getPositive = 1}
0
and I have no idea why... Anyone had the same problem and could provide some test case? In my opinion it works just the way it should... Is that some kind of a test bug (I've read some comments about problems with random test cases)?
The description of this method is not ideal and it's possible to pass all the "curve" tests while failing the "createFilter" tests.
The "trick" is to know that a filter with keep either removes ONLY one character or keeps ONLY one character. This last bit was the one that forced me to reverse engineer the expected behaviour to satisfy the tests.
You need to think through what needs to happen when on keep == true vs keep == false. If keep == true, you still only want to keep the specific character coming in from filterWhat.
Ok... I really don't get it - when the IntPredicate createFilter produces should return true? I've tried like all possible combinations...
For me the most logical would be: c -> c != filterWhat || keep;