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

Function TEST

tests/T_UV.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace LNLib;
5
6TEST(Test_UV, Construct)
7{
8 UV uv = UV();
9 EXPECT_TRUE(MathUtils::IsAlmostEqualTo(uv.GetU(), 0.0) &&
10 MathUtils::IsAlmostEqualTo(uv.GetV(), 0.0));
11 EXPECT_TRUE(uv.IsZero());
12
13 uv = UV(1.5,2.5);
14 EXPECT_TRUE(MathUtils::IsAlmostEqualTo(uv.GetU(), 1.5) &&
15 MathUtils::IsAlmostEqualTo(uv.GetV(), 2.5));
16}
17
18TEST(Test_UV, GetSet)
19{

Callers

nothing calls this directly

Calls 15

UVClass · 0.50
GetUMethod · 0.45
GetVMethod · 0.45
IsZeroMethod · 0.45
SetUMethod · 0.45
SetVMethod · 0.45
UMethod · 0.45
VMethod · 0.45
AddMethod · 0.45
SubstractMethod · 0.45
IsUnitMethod · 0.45
NegativeMethod · 0.45

Tested by

no test coverage detected