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.
It's not clear whether coordinates without space after the comma should be considered valid or not. e.g. is 13.323,18.10543 valid?
When reporting an issue :
otherwise it is impossible to know if this is an issue.
Solved in Python without regex. Can be done w/o regex in JS as well, though it it harder.
basically a "find a regex that fits this" type of question. Kind of obnoxious when there is only one "real" way to go about getting a solution. I do not think this is doable w/o regex
post an example
Well i've been at this for an hour, i got 18 done... but i cant find ANYTHING wrong with these final numbers
This one kinda takes the cake, though.. probably a 7 haha :)
so where should i make changes in my code?
just add try except ?
or any hints??