mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-01-11 03:00:59 +01:00
Add tests
Signed-off-by: Dawid SQ6EMM <sq6emm@hamradio.pl>
This commit is contained in:
parent
a0d7903f35
commit
98b2f4ed30
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue