The error means nil has no a method split, I think perhaps you want use split with a string value, but your code generate some invalid value(nil) , and then call split, and then post the error. isn't it?
EDIT: I've read the description, it said:
you should validate that the given string is not empty or null. If so, the method should return:
"Invalid String!"
If you forgot to validate the type of the argument?
all my tests pass, yet when i try to submit, i get the following:
STDERR: order_word': undefined method split' for nil:NilClass (NoMethodError)
from block in ' from block in describe'
from measure' from describe'
from `
'
Enabled in this fork
Approved
python new test framework
Great explanation, even better if you add it to the description as well.
Ruby 3.0 should be enabled.
not an issue
Re-raised as an issue.
This comment is hidden because it contains spoiler information about the solution
Your if sentence is wrong, change to:
EDIT: Brackets are not necessary.
The error means nil has no a method
split
, I think perhaps you want use split with a string value, but your code generate some invalid value(nil) , and then callsplit
, and then post the error. isn't it?EDIT: I've read the description, it said:
If you forgot to validate the type of the argument?
Ruby!
A small suggestion is you should tell author that you are using which language ;-)
all my tests pass, yet when i try to submit, i get the following:
STDERR:
order_word': undefined method
split' for nil:NilClass (NoMethodError)from
block in ' from
block in describe'from
measure' from
describe'from `
'
any suggestions?
can you post your code please?
CoffeeScript translation Kumited! Please Accept :D
Loading more items...