Thank you. I appreciate your response. It's frustrating that that didn't result in a failed test. Every time I ran my code, it said all tests passed. It should've shown a failure when the input was an empty string so I could've done some troubleshooting myself.
It fails on an empty string. Check the output what is expected and what you have returned.
My code is passing all the tests, but I cannot complete this kata because of an error. I am not sure how to go about resolving it. Here is the output from the last time I ran the tests:
Time: 636ms Passed: 30 Failed: 0 Exit Code: 1
main.rb:9:in kacokadekame': undefined method ' for nil:NilClass (NoMethodError)
from main.rb:4:in test' from main.rb:58:in block (2 levels) in '
from main.rb:55:in times' from main.rb:55:in block in '
from /runner/frameworks/ruby/cw-2.rb:55:in block in describe' from /runner/frameworks/ruby/cw-2.rb:46:in measure'
from /runner/frameworks/ruby/cw-2.rb:51:in describe' from /runner/frameworks/ruby/cw-2.rb:202:in describe'
from main.rb:54:in `'
kacokadekame': undefined method
test' from main.rb:58:in
times' from main.rb:55:in
block in describe' from /runner/frameworks/ruby/cw-2.rb:46:in
describe' from /runner/frameworks/ruby/cw-2.rb:202:in
The translation author fixed the warnings, closing
This comment is hidden because it contains spoiler information about the solution
"local top" is indeed a term that is been used all over cw all the times and always so its so weird to not understand it from one example
very nice, thanks
now for sure i aint skipin
Just skip my kata, if you are not able to figure what a "local top" is from the descritpion and sample provided.
!!yes i know,i read it , this is how one get to b 3kyu - - - wait for it!! by reading the katas
local tops of string from the highest to the lowest - i dont know what this is
?? The first sentence in the description of my kata says: Write a function that accepts msg string and returns local tops of string from the highest to the lowest.
Write a function that accepts msg string and returns local tops of string from the highest to the lowest.
its really not clear what is being aked in this kata pls fix and explain in the example what is the input and what is the output thx
This looks total sorcery for me.
What sorcery is this? :)
It has to do with the versions you work with, most likely. For an instance, in JS, NodeJS supports "replaceAll" only at versions 12+. Codewars uses 8.
You may need to find workarounds to your solutions, with functions that exist in older versions.
love the pure functions!