1 // Copyright (C) 2003  Davis E. King (davis@dlib.net)
2 // License: Boost Software License   See LICENSE.txt for the full license.
3 #ifndef DLIB_BINARY_SEARCH_TREE_KERNEl_TEST_
4 #define DLIB_BINARY_SEARCH_TREE_KERNEl_TEST_
5 
6 
7 #include <sstream>
8 #include <string>
9 #include <cstdlib>
10 #include <ctime>
11 
12 #include <dlib/memory_manager_global.h>
13 #include <dlib/memory_manager_stateless.h>
14 #include <dlib/binary_search_tree.h>
15 #include "tester.h"
16 #include "binary_search_tree.h"
17 
18 namespace
19 {
20 
21     class binary_search_tree_tester : public tester
22     {
23     public:
binary_search_tree_tester()24         binary_search_tree_tester (
25         ) :
26             tester ("test_binary_search_tree_kernel_2a",
27                     "Runs tests on the binary_search_tree_kernel_2a component.")
28         {}
29 
perform_test()30         void perform_test (
31         )
32         {
33             dlog << LINFO << "testing kernel_2a";
34             binary_search_tree_kernel_test<binary_search_tree<int,int>::kernel_2a>();
35             print_spinner();
36 
37             dlog << LINFO << "testing kernel_2a_c";
38             binary_search_tree_kernel_test<binary_search_tree<int,int>::kernel_2a_c>();
39             print_spinner();
40         }
41     } a;
42 
43 }
44 
45 #endif
46