sustaining_gazes/lib/3rdParty/dlib/include/dlib/test/conditioning_class.cpp
2016-04-28 15:40:36 -04:00

86 lines
2.3 KiB
C++

// Copyright (C) 2003 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <sstream>
#include <string>
#include <ctime>
#include <cstdlib>
#include <dlib/conditioning_class.h>
#include "tester.h"
#include "conditioning_class.h"
namespace
{
class conditioning_class_tester : public tester
{
public:
conditioning_class_tester (
) :
tester ("test_conditioning_class",
"Runs tests on the conditioning_class component.")
{}
void perform_test (
)
{
dlog << LINFO << "testing kernel_1a";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_1a,
conditioning_class<2>::kernel_1a
>();
print_spinner();
dlog << LINFO << "testing kernel_2a";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_2a,
conditioning_class<2>::kernel_2a
>();
print_spinner();
dlog << LINFO << "testing kernel_3a";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_3a,
conditioning_class<2>::kernel_3a
>();
print_spinner();
dlog << LINFO << "testing kernel_4a";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_4a,
conditioning_class<2>::kernel_4a
>();
print_spinner();
dlog << LINFO << "testing kernel_4b";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_4b,
conditioning_class<2>::kernel_4b
>();
print_spinner();
dlog << LINFO << "testing kernel_4c";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_4c,
conditioning_class<2>::kernel_4c
>();
print_spinner();
dlog << LINFO << "testing kernel_4d";
conditioning_class_kernel_test<
conditioning_class<256>::kernel_4d,
conditioning_class<2>::kernel_4d
>();
print_spinner();
}
} a;
}