(There are more)
Duplicate of what? This cata was created 4 years ago
Thanks, glad you like it:-) - by the way good work, hope you lost not too much time;-)...
This is a great kata! The biggest difficulty was ofcourse unary minus but it was a pleasure to debugg great task :)
For others: read the text carefully, I missed a few words and lost a lot of time because of it.
Thanks, I'm glad you like it. Hopefully enough people will complete it that it makes it out of beta!
I think your and is messing you up here. Looking at your logic, do the expressions on both sides of your and operator evaluate to true when it's sunny and the rain chance is < 0.5? In that case I think you want to be returning true but I don't think your logic matches that.
Perhaps a simpler way to think about it being sunny is to say "Take an umbrella if it's rainint OR if it's cloudy and looks like rain OR if it's sunny and the forecast is for rain."
This comment is hidden because it contains spoiler information about the solution
Added example tests just now, thank you for the suggestion.
Great idea for kata.
Thanks to you I found yet another way to deal with generators :)
This kata made me think about how great metric system is.
Still good exercise ;)
There should be some example tests.
Thanks for suggestion, I will create random tests in near future :)
Random tests are done and I think I broke your solution : (
You are absolutely right - copy paste mistake :)