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.
Initial code is missing from the kata.
Random tests are missing too.
But in the random tests:
Result shouldn't be rounded: it causes error that propagates through other calculations.
Also:
Test setup is wrong: one city is initialized with a tuple while the other is initialized with
Coordinates
object.Haversine distance is a duplicate of https://www.codewars.com/kata/524ada2bdc2121b521000353
Python translation with adding
assert_approx_equals
and also other improvments (fixing typos in description, new test framework, etc)(the author is inactive)
Don't round results before comparision, use
test.assert_approx_equals
.See https://www.codewars.com/kata/5f9f43328a6bff002fa29eb8
Should mention in the description that some characters translate to multiple characters, and what exactly:
Æ
-->Ae
æ
-->ae
Þ
-->Th
þ
-->th
(this is a guess, haven't seen it in the tests)Also:
ß
-->B
? Phonetically it'sss
; but if you're translating the letters visually, thenÞ
should translate tob
orp
, notTh
...I do not understand this test case:
Testing 'C. Norris' and 'Carlos N.'
True should equal False
To me it looks like they could belong to the same person
Needs random tests.
Except that
é
is not tested.Needs edge case
could_be('?','!')
.Empty strings should not be considered a match, but it's not mentioned in the descriptions.
Description is incomplete: what are the list of accents that we need to handle? There are infinite amount of possible accents (see Zalgo).
No random tests.
Loading more items...