from common.utils.geo import haversine_km def test_haversine_seoul_busan_about_325km(): assert 320 < haversine_km(37.5665, 126.9780, 35.1796, 129.0756) < 330 def test_haversine_same_point_is_zero(): assert haversine_km(37.5, 127.0, 37.5, 127.0) == 0