MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / TEST_NAME

Function TEST_NAME

test/variant_math_test.cpp:38–46  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

36
37////////////////////////////////////////////////////////////////////////////////
38int TEST_NAME(int, char**) {
39 UnitTest t(1);
40
41 Variant v0(10.0);
42 v0.sqrt();
43 t.is(v0.get_real(), 3.1622, EPSILON, "math sqrt 10 -> 3.1622");
44
45 return 0;
46}
47
48////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

sqrtMethod · 0.80
isMethod · 0.80
get_realMethod · 0.80

Tested by

no test coverage detected