| 1 |
add_h3_cli_test(testCliGreatCircleDistanceKmArg |
| 2 |
"greatCircleDistanceKm -c '[[0, 1], [1, 2]]'" "157.2495585118") |
| 3 |
add_h3_cli_test( |
| 4 |
testCliGreatCircleDistanceKmFile |
| 5 |
"greatCircleDistanceKm -i ${PROJECT_SOURCE_DIR}/tests/inputfiles/great_circle_distance.txt" |
| 6 |
"157.2495585118") |
| 7 |
add_h3_cli_test( |
| 8 |
testCliGreatCircleDistanceKmStdin |
| 9 |
"greatCircleDistanceKm -i -- < ${PROJECT_SOURCE_DIR}/tests/inputfiles/great_circle_distance.txt" |
| 10 |
"157.2495585118") |
| 11 |
add_h3_cli_test( |
| 12 |
testCliGreatCircleDistanceKmBadArg |
| 13 |
"greatCircleDistanceKm -c '[[0, 1]]' 2>&1" |
| 14 |
"Only two pairs of coordinates should be provided.") |