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.
There was an issue with random tests generating floats, it should be fixed now, try again.
Fixed.
Duplicate issue.
I can see that many people have passed this kata, but I'm still stuck on the problem of the decimals of the amount in Ruby Random Test, and beyond forcing the amount to integer, (which doesn't solve anything) I don't know what else I can try. Does anyone have an idea that I can try? Thank you
Thanks man! It works!
I was talking about Python there, in Ruby simply write
regex=/your regular expression here/
so, from your code, remove the quotes.This comment is hidden because it contains spoiler information about the solution
You're supposed to write a regular expression. Not an issue.
I can't test my expresion. Using Chrono79 simple example of regex="[0-9]", in Ruby 2.5 it shows this error:
on main.rb:6:in =~': type mismatch: String given (TypeError)
But my attempt is in line 1, any idea of why it can be?Wow, you definitely blow my mind and you have introduce to me Recursion. Thank you sir.
(ruby)
I got the kata ready, but when I post it, it breaks. But in my irb it works.
What I am missing?
Nice and elegant!