MCPcopy Create free account
hub / github.com/davisking/dlib / test_metaprog

Function test_metaprog

dlib/test/is_same_object.cpp:43–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 };
42
43 void test_metaprog()
44 {
45 DLIB_TEST(has_booya2_template<htest>::value == true);
46 DLIB_TEST(has_booya2_template<htest2>::value == false);
47
48#if _MSC_VER > 1600 // there is a bug in visual studio 2010 and older that prevents this test from working
49 DLIB_TEST(has_booya_template<htest>::value == true);
50#endif
51
52 DLIB_TEST(has_booya_template<htest2>::value == false);
53
54 DLIB_TEST(has_funct_int<htest>::value == false);
55 DLIB_TEST(has_funct_int<htest2>::value == true);
56 DLIB_TEST(has_funct_double<htest>::value == true);
57 DLIB_TEST(has_funct_double<htest2>::value == false);
58
59 DLIB_TEST(has_funct_f<htest>::value == false);
60 DLIB_TEST(has_funct_f<htest2>::value == true);
61 }
62
63 class is_same_object_tester : public tester
64 {

Callers 1

perform_testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected