summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-15 14:24:13 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-15 14:24:13 -0500
commita868a2958dd7ea138b02543ef81cc78abf8622c7 (patch)
treea22e18fd379000ccc1a104ae711a499377e60a72 /tests
parent26e8ad8ce8f15e25b856c5cbd7f526d090cda3ae (diff)
downloaddimension-a868a2958dd7ea138b02543ef81cc78abf8622c7.tar.xz
Rename kD splay trees to Bounding Volume Splay Trees.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/Makefile.am6
-rw-r--r--tests/libdimension/bvst.c (renamed from tests/libdimension/kD_splay_tree.c)20
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/libdimension/Makefile.am b/tests/libdimension/Makefile.am
index 7b238da..886eb42 100644
--- a/tests/libdimension/Makefile.am
+++ b/tests/libdimension/Makefile.am
@@ -22,7 +22,7 @@ INCLUDES = -I$(top_srcdir)/libdimension
check_LTLIBRARIES = libdimension-tests.la
check_PROGRAMS = error-test \
warning-test \
- kD_splay_tree-test \
+ bvst-test \
png-test \
gl-test
TESTS = $(check_PROGRAMS)
@@ -45,8 +45,8 @@ error_test_LDADD = libdimension-tests.la
warning_test_SOURCES = warning.c
warning_test_LDADD = libdimension-tests.la
-kD_splay_tree_test_SOURCES = kD_splay_tree.c
-kD_splay_tree_test_LDADD = libdimension-tests.la
+bvst_test_SOURCES = bvst.c
+bvst_test_LDADD = libdimension-tests.la
png_test_SOURCES = png.c
png_test_LDADD = libdimension-tests.la
diff --git a/tests/libdimension/kD_splay_tree.c b/tests/libdimension/bvst.c
index ea53550..36dce04 100644
--- a/tests/libdimension/kD_splay_tree.c
+++ b/tests/libdimension/bvst.c
@@ -18,7 +18,7 @@
*************************************************************************/
/*
- * Basic tests of our fancy k-D splay tree framework
+ * Basic tests of our Bounding Volume Splay Tree framework
*/
#include "../../libdimension/dimension_impl.h"
@@ -27,7 +27,7 @@
int
main()
{
- dmnsn_kD_splay_tree *tree;
+ dmnsn_bvst *tree;
dmnsn_object *obj1, *obj2, *obj3;
obj1 = dmnsn_new_object();
@@ -43,28 +43,28 @@ main()
obj3->min = dmnsn_new_vector(-1.0, -1.0, -1.0);
obj3->max = dmnsn_new_vector(0.0, 0.0, 0.0);
- tree = dmnsn_new_kD_splay_tree();
+ tree = dmnsn_new_bvst();
- dmnsn_kD_splay_insert(tree, obj1);
+ dmnsn_bvst_insert(tree, obj1);
if (tree->root->object != obj1) {
- fprintf(stderr, "Wrong kD splay tree built.\n");
+ fprintf(stderr, "Wrong BVST built.\n");
return EXIT_FAILURE;
}
- dmnsn_kD_splay_insert(tree, obj2);
+ dmnsn_bvst_insert(tree, obj2);
if (tree->root->object != obj2 || tree->root->contains->object != obj1) {
- fprintf(stderr, "Wrong kD splay tree built.\n");
+ fprintf(stderr, "Wrong BVST built.\n");
return EXIT_FAILURE;
}
- dmnsn_kD_splay_insert(tree, obj3);
+ dmnsn_bvst_insert(tree, obj3);
if (tree->root->object != obj3 || tree->root->contains->object != obj1
|| tree->root->container->object != obj2) {
- fprintf(stderr, "Wrong kD splay tree built.\n");
+ fprintf(stderr, "Wrong BVST built.\n");
return EXIT_FAILURE;
}
- dmnsn_delete_kD_splay_tree(tree);
+ dmnsn_delete_bvst(tree);
dmnsn_delete_object(obj3);
dmnsn_delete_object(obj2);
dmnsn_delete_object(obj1);