Reformat source code

This commit is contained in:
2025-09-16 11:14:15 -05:00
parent 5ea3e10139
commit 67b1e5fd40
3 changed files with 31 additions and 27 deletions

View File

@@ -24,6 +24,7 @@ function runtests()
model_dist_test()
report_tests()
end
return
end
function format()

View File

@@ -6,8 +6,20 @@ using RELOG
function model_dist_test()
# Euclidean distance between Chicago and Indianapolis
@test RELOG._calculate_distance(41.866, -87.656, 39.764, -86.148, RELOG.EuclideanDistance()) == 265.818
@test RELOG._calculate_distance(
41.866,
-87.656,
39.764,
-86.148,
RELOG.EuclideanDistance(),
) == 265.818
# Driving distance between Chicago and Indianapolis
@test RELOG._calculate_distance(41.866, -87.656, 39.764, -86.148, RELOG.KnnDrivingDistance()) == 316.43
@test RELOG._calculate_distance(
41.866,
-87.656,
39.764,
-86.148,
RELOG.KnnDrivingDistance(),
) == 316.43
end