MCPcopy Index your code
hub / github.com/HandmadeMath/HandmadeMath / TEST

Function TEST

test/categories/Equality.h:3–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "../HandmadeTest.h"
2
3TEST(Equality, Vec2)
4{
5 HMM_Vec2 a = HMM_V2(1.0f, 2.0f);
6 HMM_Vec2 b = HMM_V2(1.0f, 2.0f);
7 HMM_Vec2 c = HMM_V2(3.0f, 4.0f);
8
9 EXPECT_TRUE(HMM_EqV2(a, b));
10 EXPECT_FALSE(HMM_EqV2(a, c));
11
12#ifdef __cplusplus
13 EXPECT_TRUE(HMM_Eq(a, b));
14 EXPECT_FALSE(HMM_Eq(a, c));
15
16 EXPECT_TRUE(a == b);
17 EXPECT_FALSE(a == c);
18
19 EXPECT_FALSE(a != b);
20 EXPECT_TRUE(a != c);
21#endif
22}
23
24TEST(Equality, Vec3)
25{

Callers

nothing calls this directly

Calls 7

HMM_V2Function · 0.85
HMM_EqV2Function · 0.85
HMM_EqFunction · 0.85
HMM_V3Function · 0.85
HMM_EqV3Function · 0.85
HMM_V4Function · 0.85
HMM_EqV4Function · 0.85

Tested by

no test coverage detected