MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / TEST

Function TEST

tests/T_XYZ.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace LNLib;
5
6TEST(Test_XYZ, Construct)
7{
8 XYZ xyz = XYZ();
9 EXPECT_TRUE(xyz.IsZero());
10 xyz = XYZ(1, 2, 3);
11 EXPECT_TRUE(MathUtils::IsAlmostEqualTo(xyz.GetX(), 1) &&
12 MathUtils::IsAlmostEqualTo(xyz.GetY(), 2) &&
13 MathUtils::IsAlmostEqualTo(xyz.GetZ(), 3));
14}
15
16TEST(Test_XYZ, GetSet)
17{

Callers

nothing calls this directly

Calls 15

XMethod · 0.80
YMethod · 0.80
ZMethod · 0.80
XYZClass · 0.50
IsZeroMethod · 0.45
GetXMethod · 0.45
GetYMethod · 0.45
GetZMethod · 0.45
SetXMethod · 0.45
SetYMethod · 0.45
SetZMethod · 0.45
IsUnitMethod · 0.45

Tested by

no test coverage detected