Skip to content

Commit

Permalink
test other case
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Sep 29, 2024
1 parent f199548 commit 663e02a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/apps/testapps/testCompactCells.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

#include <stdlib.h>
#include <string.h>

#include "constants.h"
#include "h3Index.h"
Expand Down Expand Up @@ -112,6 +113,18 @@ SUITE(compactCells) {
int64_t numUncompacted = numRes1;
t_assertSuccess(H3_EXPORT(compactCells)(cells1, out, numUncompacted));

memset(out, 0, sizeof(H3Index) * numRes1);

numUncompacted = 44;
t_assertSuccess(
H3_EXPORT(compactCells)(&cells1[80], out, numUncompacted));

memset(out, 0, sizeof(H3Index) * numRes1);

numUncompacted = 43;
t_assertSuccess(
H3_EXPORT(compactCells)(&cells1[80], out, numUncompacted));

// TODO: check that output matches cells0

free(cells0);
Expand Down

0 comments on commit 663e02a

Please sign in to comment.