MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / expectNear

Function expectNear

test/math/Matrix4.cpp:19–24  ·  view source on GitHub ↗

EXPECT that two Vector3s are close to each other

Source from the content-addressed store, hash-verified

17
18 // EXPECT that two Vector3s are close to each other
19 void expectNear(const Vector3& v1, const Vector3& v2, double eps = EPSILON)
20 {
21 EXPECT_NEAR(v1.x(), v2.x(), eps);
22 EXPECT_NEAR(v1.y(), v2.y(), eps);
23 EXPECT_NEAR(v1.z(), v2.z(), eps);
24 }
25}
26
27TEST(Matrix4Test, CreateIdentityMatrix)

Callers 1

TESTFunction · 0.70

Calls 3

xMethod · 0.80
yMethod · 0.80
zMethod · 0.80

Tested by

no test coverage detected