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.
Tests are severely lacking: only 2 threads are tested, so it is very easy for a basic deadlock checking to pass.
What is the expected handling if a thread tries to acquires a mutex it has already acquired?
Solutions like this should be patched.
This is an absurd notion: if the original and the substitute object are supposed to be the same, then calling mutating methods on both objects should result in this being applied twice (and calling on either side should cause both to be mutated and remain the same). Otherwise they're different, and they cannot be considered the same object (as not every object supports
.clone
).I swear I mean that in the nicest way possible. Generally not good to inherit from Hash, but this solution is super clever.
gross. I love it.
Needs definition/description of "thread".
Needs examples.
Hi,
There's an issue with the Python (3) translation.
Athough I am correctly raising the exception in the event of a deadlock, it seems the threads are never terminated in the tests (both example and full suite) so every test run ends with a timeout.
Aah that's clever. I have one question though:
So if a condition is not met the first time a ternary statement is
called, and there's recurssion on the false side, would it ever go
through the true side again? (i.e. would it just keep going back to
the recursive point, which is the false side in this case?).
Linear regression has been done (e.g https://www.codewars.com/kata/5515395b9cd40b2c3e00116c), so this kata is a duplicate.
wrong a
/wrong b
is terrible (and unacceptable) test feedback, so they should be changed. At least the expected and actual value should be shown, like inassert_equals
.I'd suggest requiring the solution to deal with a set of points such as this:
…and to add correspondint tests.
Also, needs more tests.
Sample tests uses
Object
butBasicObject
is used in the actual tests.They're completely different.
Test messages are very unhelpful.
Loading more items...