Skip to content

Commit f8ed291

Browse files
committed
Add fuzzer discovered tests for polygonToCells
1 parent 3d4bdc3 commit f8ed291

File tree

5 files changed

+466
-4
lines changed

5 files changed

+466
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ The public API of this library consists of the functions declared in file
1313
- Fixed possible signed integer overflow in `h3NeighborRotations` (#707)
1414
- Fixed possible signed integer overflow in `localIjToCell` (#706, #735)
1515

16-
### Changed
16+
### Change
1717
- `assert` on defensive code blocks that are not already covered. (#720)
1818
- `clang-format` upgraded to version 11. (#734)
19+
- Increased test coverage using fuzzer-discovered cases.
1920

2021
## [4.0.1] - 2022-09-15
2122
### Fixed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ set(OTHER_SOURCE_FILES
189189
src/apps/testapps/testVertexGraph.c
190190
src/apps/testapps/testCompactCells.c
191191
src/apps/testapps/testPolygonToCells.c
192+
src/apps/testapps/testPolygonToCellsErrors.c
192193
src/apps/testapps/testPolygonToCellsReported.c
193194
src/apps/testapps/testPentagonIndexes.c
194195
src/apps/testapps/testGridDisk.c

CMakeTests.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ add_h3_test(testCellsToLinkedMultiPolygon src/apps/testapps/testCellsToLinkedMul
184184
add_h3_test(testH3SetToVertexGraph src/apps/testapps/testH3SetToVertexGraph.c)
185185
add_h3_test(testLinkedGeo src/apps/testapps/testLinkedGeo.c)
186186
add_h3_test(testPolygonToCells src/apps/testapps/testPolygonToCells.c)
187+
add_h3_test(testPolygonToCellsErrors src/apps/testapps/testPolygonToCellsErrors.c)
187188
add_h3_test(testPolygonToCellsReported src/apps/testapps/testPolygonToCellsReported.c)
188189
add_h3_test(testVertexGraph src/apps/testapps/testVertexGraph.c)
189190
add_h3_test(testDirectedEdge src/apps/testapps/testDirectedEdge.c)

0 commit comments

Comments
 (0)