Implemented find/find closest for B+ tree.

Added test suite.
Fixed some b+ tree bugs.
This commit is contained in:
2018-06-23 16:21:12 +01:00
parent 777697d9ab
commit 566bf94225
12 changed files with 360 additions and 3 deletions

21
tests/check_sdb.c Normal file
View File

@@ -0,0 +1,21 @@
//
// Created by sam on 22/06/18.
//
#include <stdlib.h>
#include <check.h>
#include "bplus_tree_test.h"
int main(void) {
int number_failed;
Suite *s;
SRunner *sr;
s = blus_tree_suite();
sr = srunner_create(s);
srunner_run_all(sr, CK_NORMAL);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}