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

Function run_test2

dlib/test/any_function.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146// ----------------------------------------------------------------------------------------
147
148 void run_test2()
149 {
150 any_function<int(int,int)> f = &add;
151
152 DLIB_TEST(f(1,3) == 4);
153
154 any_function<string(string,string)> g(&cat);
155 DLIB_TEST(g("one", "two") == "onetwo");
156 }
157
158// ----------------------------------------------------------------------------------------
159

Callers 1

perform_testMethod · 0.70

Calls 1

fFunction · 0.70

Tested by

no test coverage detected