Yeah, that caught me off guard too. The description needs a bit of rework.
Because it's easier to do so? If it's solely a number problem then yes, math would be easier. But this kata is more about formatting rather than number checking.
Now it's 6 Kyu :)
Array of coordinates? You only given 1 coordinate per function call.
Slow down buddy. If this feels to much for you, do some easier regex kata first.
1e1 == '10', false....
I have to hard coding 'e', feel not good about it ~
Kata author is gone, issues should be fixed by someone else.
looks like u solved it some time ago~~
'alr approved some time ago'
Broke my head with trying to go though the list of coordinates.
But the func should receive only one pair of coordinates.
It will be good to make instruction more clear.
But honesly my pattern of regexp was not completely valid (as it was my first experience with re), so now I know more about regexp.
Thanks to all!:)
Please add a test where the first coordinate is valid and second is outside range. My code passed by texting latitude only
One liner cough cough
This kata needs clarification on floating points.
"Validation failed" is about as useful as "value was not what was expected". Use assert_equals.