Skip to content

Commit

Permalink
tests one split unique nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 28, 2022
1 parent a2f9721 commit 2bc9618
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ref_oct_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,23 @@ int main(int argc, char *argv[]) {
RSS(ref_oct_free(ref_oct), "free oct");
}

{
{ /* root unique nodes */
REF_OCT ref_oct;
RSS(ref_oct_create(&ref_oct), "make oct");
RSS(ref_oct_unique_nodes(ref_oct), "make nodes");
REIS(8, ref_oct_nnode(ref_oct), "expects 8 node hex");
RSS(ref_oct_free(ref_oct), "free oct");
}

{ /* one split unique nodes */
REF_OCT ref_oct;
RSS(ref_oct_create(&ref_oct), "make oct");
RSS(ref_oct_split(ref_oct, 0), "split root");
RSS(ref_oct_unique_nodes(ref_oct), "make nodes");
REIS(27, ref_oct_nnode(ref_oct), "expects 8 node hex");
RSS(ref_oct_free(ref_oct), "free oct");
}

{ /* contains root */
REF_OCT ref_oct;
REF_DBL xyz[] = {0.1, 0.1, 0.1};
Expand Down

0 comments on commit 2bc9618

Please sign in to comment.