Add tests

Signed-off-by: Dawid SQ6EMM <sq6emm@hamradio.pl>
This commit is contained in:
Dawid SQ6EMM 2025-05-05 10:26:38 +02:00
parent a0d7903f35
commit 98b2f4ed30

View file

@ -24,8 +24,8 @@ class Test_latlong_to_locator():
assert latlong_to_locator(39.222916, -86.45416, 8) == "EM69SF53"
def test_latlong_to_locator_10chars_precision(self):
assert latlong_to_locator(45.83568, 68.52518, precision=10) == "MN45GU30AN"
assert latlong_to_locator(51.12492, 16.94183, 10) == "JO81LC39AX"
assert latlong_to_locator(45.835677, 68.525173, precision=10) == "MN45GU30AN"
assert latlong_to_locator(51.124913, 16.941840, 10) == "JO81LC39AX"
def test_latlong_to_locator_invalid_characters(self):