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

Function test_contains_4

dlib/test/any.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// ----------------------------------------------------------------------------------------
26
27 void test_contains_4(
28 const any a
29 )
30 {
31 DLIB_TEST(a.is_empty() == false);
32 DLIB_TEST(a.contains<int>() == true);
33 DLIB_TEST(a.contains<double>() == false);
34 DLIB_TEST(any_cast<int>(a) == 4);
35 }
36
37// ----------------------------------------------------------------------------------------
38

Callers 1

run_testFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected