Fix testH3Api
#include <math.h>
#include "geoPoint.h"
-#include "h3api.h"
#include "h3Index.h"
#include "h3api.h"
#include "test.h"
@@ -105,12 +104,12 @@ SUITE(h3Api) {
t_assertBoundary(h3, &boundary);
}
- TEST(h3ToGeoBoundary_failed) {
+ TEST(cellToBoundary_failed) {
H3Index h = 0x87dc6d364ffffffL;
H3_SET_BASE_CELL(h, NUM_BASE_CELLS + 1);
- GeoBoundary gb;
- t_assert(H3_EXPORT(h3ToGeoBoundary(h, &gb) == E_CELL_INVALID),
- "h3ToGeoBoundary fails on invalid index");
+ CellBoundary gb;
+ t_assert(H3_EXPORT(cellToBoundary(h, &gb) == E_CELL_INVALID),
+ "cellToBoundary fails on invalid index");
}
TEST(h3ToGeoInvalid) {
