src/apps/testapps/testCellToLatLng.c [49:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    t_assert(h1 == h2, "got expected latLngToCell output");
}

int main(int argc, char *argv[]) {
    // check command line args
    if (argc > 1) {
        fprintf(stderr, "usage: %s\n", argv[0]);
        exit(1);
    }

    // process the indexes and lat/lngs on stdin
    char buff[BUFF_SIZE];
    char h3Str[BUFF_SIZE];
    while (1) {
        // get an index from stdin
        if (!fgets(buff, BUFF_SIZE, stdin)) {
            if (feof(stdin))
                break;
            else
                error("reading input from stdin");
        }

        double latDegs, lngDegs;
        if (sscanf(buff, "%s %lf %lf", h3Str, &latDegs, &lngDegs) != 3)
            error("parsing input (should be \"H3Index lat lng\")");

        H3Index h3;
        t_assertSuccess(H3_EXPORT(stringToH3)(h3Str, &h3));

        LatLng coord;
        setGeoDegs(&coord, latDegs, lngDegs);

        assertExpected(h3, &coord);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/apps/testapps/testLatLngToCell.c [40:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    t_assert(h1 == h2, "got expected latLngToCell output");
}

int main(int argc, char *argv[]) {
    // check command line args
    if (argc > 1) {
        fprintf(stderr, "usage: %s\n", argv[0]);
        exit(1);
    }

    // process the indexes and lat/lngs on stdin
    char buff[BUFF_SIZE];
    char h3Str[BUFF_SIZE];
    while (1) {
        // get an index from stdin
        if (!fgets(buff, BUFF_SIZE, stdin)) {
            if (feof(stdin))
                break;
            else
                error("reading input from stdin");
        }

        double latDegs, lngDegs;
        if (sscanf(buff, "%s %lf %lf", h3Str, &latDegs, &lngDegs) != 3)
            error("parsing input (should be \"H3Index lat lng\")");

        H3Index h3;
        t_assertSuccess(H3_EXPORT(stringToH3)(h3Str, &h3));

        LatLng coord;
        setGeoDegs(&coord, latDegs, lngDegs);

        assertExpected(h3, &coord);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



