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.
Yeah, sorry, I've decided to take a break from Codewars for a while, but now I'm mostly back!
So, apologies for deserting this for a while..)
Rust translation
Rust translation
That's only the case with test suites like Python, as in those languages the function might be accessible from the solution. (https://docs.codewars.com/languages/python/authoring/#reference-solution)
In Rust you need to declare a function with
pub
to make it accessible from outside, which isn't the case.However, for the sake of encapsulation, I will agree that it would make more sense to have the function as part of the
tests
module.Well, IMO they used cheat as an only possible way to pass here, since the tests were not working at the moment
Unfortunately, a kata is automatically being retired when it hits a sertain amount of somewhat/none votes compared to the very ones
Yeah, I see, just really amazed ))
If anyone like @FArekkusu or @XRFXLP is still here, could you please explain how you did that bypass (I mean, looking at your solutions I don't understand anything ))
Try using "Insert example" button (first copy your tests and solution somewhere) and see how the tests are done.
When you hit attempt/test it shows all tests being passed, but the solution being wrong (red frame around the output window)
Also, the only test showing up in there is called
yoghurt
. That seem to be all the testsI mean that some of the first "hard tests" assume that the correct output is a list of
None
values, even thoughfor example, sure contains valid dates such as "3-26-2004".
Ehm,
?
And that's nearly (only the amount of Nones vary) the same for every random test
Edit: Sorry, for the half of random tests. Others seem to work fine.
Alright, sorry. Changed that.
Sorry yall, guys, but having 22:52 in Moscow now, so need to go asleep. See ya tomorrow!
Nevermind, I'm back
Loading more items...