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.
According to the description, where is my money? 😉
This comment is hidden because it contains spoiler information about the solution
Oh dear, I mixed the author with someone else again... 'XD
Added the tests in the java version
Thanks for all your help :D
note: the copies for the message aren't needed anymore, now.
Done.
@Bebek5121314: you need to add the same tests in the java version.
for Python, this tests added, about java i'm not ofc.
warning, this snipet is wrong as well. => copy to the user's, not anywhere else (unless the ref is mutating the input...? x/ )
edit: oh, that's what you say in the last sentence. But it's not what currently is in the test suite, so that tripped me up...
has this tests been added in all languages?
Random Tests in Python display users "final" array in error message leading to confusing error messages in cases where user modifies inputs:
test.assert_equals(is_defended(a, b), ref(a[:],b[:]), f"Didnt work for attackers={a}, defenders={b}")
(I can't edit tests myself - just make the
a
andb
copies before calling the users solution on them)Reraised as Issue above then
Thanks!!!
(that's actually an issue)
Thanks, I found the problem! =)
Loading more items...