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.
OP solved it, closing
ruby:
For ‘abc def’ it expects ‘af1be2cd3’ but the error I am now getting is “Should work for two words, like 'CodeWars Rocks' - Expected: ‘Cs1ok2dc3eo4WR5a 6rs7’, instead got: ‘Cs1ok2dc3eo4WR5as6r’”
Why is ‘CodeWars Rocks’ considered two words, but not ‘abc def’? Is it the capital letters??
Approved
Updated JavaScript
I'm also in Ruby and passing the normal tests and then getting errors on the "random strings." The test says its expecting an empty string which doesn't make sense...... ("")
I think this kata is kinda confusing, because of how to input digits symbols, etc..
Approved by someone
Python update (new testing framework)
This comment is hidden because it contains spoiler information about the solution
Same issue here lol. Should work for random string too - Expected: "", instead got: "jn11h2su3114vp5"
This comment is hidden because it contains spoiler information about the solution
That's funny, I'm having a problem with the random tests in Ruby too, but whereas yours expected just a small part of the string, mine expected an empty string:
I have a solution which passes normal test cases but fails on random strings during submit. Here's the message I get:
Is it me getting the kata in a wrong way, or is there a bug in tests? (Language used - ruby).
You mean something like this?
A wonderfully simple and optimizable problem. Good job!
You could add a more annotated example to make things super clear, though. It's hard to describe "2 from the left, 2 from the right" and so on. Here's an example; you can use it if you wish.
Loading more items...