add_h3_cli_test(
    testCliPolygonToCellsFile1
    "polygonToCells -r 7 -i ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test1.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "87283082bffffff,872830870ffffff,872830820ffffff,87283082effffff,872830828ffffff,87283082affffff,872830876ffffff,"
)
add_h3_cli_test(
    testCliPolygonToCellsFile2
    "polygonToCells -r 7 -i ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test2.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "872830828ffffff,87283082effffff,")
add_h3_cli_test(
    testCliPolygonToCellsFile3
    "polygonToCells -r 4 -i ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test3.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "84f05a3ffffffff,84e720bffffffff,84e7257ffffffff,84e725bffffffff,")
add_h3_cli_test(
    testCliPolygonToCellsStdin1
    "polygonToCells -r 7 -i -- < ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test1.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "87283082bffffff,872830870ffffff,872830820ffffff,87283082effffff,872830828ffffff,87283082affffff,872830876ffffff,"
)
add_h3_cli_test(
    testCliPolygonToCellsStdin2
    "polygonToCells -r 7 -i -- < ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test2.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "872830828ffffff,87283082effffff,")
add_h3_cli_test(
    testCliPolygonToCellsStdin3
    "polygonToCells -r 4 -i -- < ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test3.txt -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "84f05a3ffffffff,84e720bffffffff,84e7257ffffffff,84e725bffffffff,")
add_h3_cli_test(
    testCliPolygonToCellsArg1
    "polygonToCells -r 7 -p \"\\\\`cat ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test1.txt\\\\`\" -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "87283082bffffff,872830870ffffff,872830820ffffff,87283082effffff,872830828ffffff,87283082affffff,872830876ffffff,"
)
add_h3_cli_test(
    testCliPolygonToCellsArg2
    "polygonToCells -r 7 -p \"\\\\`cat ${PROJECT_SOURCE_DIR}/tests/inputfiles/polygon_test2.txt\\\\`\" -f newline | tr -s '\\\\r\\\\n' ',' | tr -s '\\\\n' ','"
    "872830828ffffff,87283082effffff,")
