summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-07 14:49:20 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-07 14:49:20 +0000
commit5f46ca9570f887e057bec38c7430dbdd54f7a85b (patch)
tree4ac891d762fbe7efc74d0041ad5e6ef41921da89 /tests
parent1bba463bdbae20b3251d9e315e21d33e4764a7fe (diff)
downloaddimension-5f46ca9570f887e057bec38c7430dbdd54f7a85b.tar.xz
Call kD splay children `contains' and `container'.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/kD_splay_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libdimension/kD_splay_tree.c b/tests/libdimension/kD_splay_tree.c
index 4ab994a..76f6441 100644
--- a/tests/libdimension/kD_splay_tree.c
+++ b/tests/libdimension/kD_splay_tree.c
@@ -52,14 +52,14 @@ main()
}
tree = dmnsn_kD_splay_insert(tree, obj2);
- if (tree->object != obj2 || tree->left->object != obj1) {
+ if (tree->object != obj2 || tree->contains->object != obj1) {
fprintf(stderr, "Wrong kD splay tree built.\n");
return EXIT_FAILURE;
}
tree = dmnsn_kD_splay_insert(tree, obj3);
- if (tree->object != obj3 || tree->left->object != obj1
- || tree->right->object != obj2) {
+ if (tree->object != obj3 || tree->contains->object != obj1
+ || tree->container->object != obj2) {
fprintf(stderr, "Wrong kD splay tree built.\n");
return EXIT_FAILURE;
}