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.
the lack of sample tests for Ruby has already been reported there
here is a fork that adds them, along with random tests, Ruby 3.0 + RSpec, language-agnostic description
Codewars handles the "no example tests present" in a strange way, I've seen it on a couple of test suites when updating C# and JS kata. It looks like it's possible to have the example test snippets totally empty, but then strange things happen in the trainer and in the fork editor. Sometimes, the template is inserted, but it disappears when clicking RESET. Sometimes, the template is inserted and then shows up in the diff after publishing as added. So generally it's difficult to say if the template tests you see are there in the DB, and whether they will end up saved to the DB.
holy sh...
This comment is hidden because it contains spoiler information about the solution
This is the current sample test code for ruby:
Hitting the
reset
button empties the tests, but they were there upon opening it and they're there when pressingfork
. Is it fully empty like thereset
functionality suggests and is using a default?copy your code then reset the trainer. You probably got an outdated version. If that's enough, don't forget to close the issue.
Tests still need to be updated to Ruby 3, but this specific issue is fixed.
Are you sure? This does not seem right. I created a solution which always returns
""
and it passes 0 tests.EDIT: I think I can see the issue.
you think so?
Retired kata stay retired, and they cannot be brought back. Adding tests to a retired kata won't help it, but if you want you can still add them and ask for review on Discord if you want to train your authoring skills and get some practice before authoring your next challenge.
Retirement is permanent, but if you think you can improve it a lot to prevent retirement next time, you could simply create a new kata and copy your code across. However if the cause of retirement was people not finding it interesting enough, then simply adding random tests probably wont change that.
If you are interested with creating kata for Codewars, you can find following resources helpful:
Just a hunch, but beta is a ruthless process. If your kata isn't (nearly) perfect or interesting, or novel, from the start, chances are it will be downvoted. After so many downvotes, it's automatically retired. Without random tests, most power users will downvote immediately.
Agree
This comment is hidden because it contains spoiler information about the solution
Loading more items...