Add test coverage macros (#104)

* Add coverage features and add it, laboriously, to everything

* Fix easy tests

* Add tests for != operators

* Clean up test framework a little

* Add documentation of coverage macros

* Fix tests for mat4 to quaternion

* Slightly improve formatting of coverage output

* Trailing whitespace must die
This commit is contained in:
Ben Visness
2019-07-31 16:43:56 -05:00
committed by GitHub
parent 78e6feea82
commit f376f2a2a7
16 changed files with 1220 additions and 354 deletions

View File

@@ -4,9 +4,9 @@ TEST(Initialization, Vectors)
{
//
// Test vec2
//
//
hmm_vec2 v2 = HMM_Vec2(1.0f, 2.0f);
hmm_vec2 v2i = HMM_Vec2(1, 2);
hmm_vec2 v2i = HMM_Vec2i(1, 2);
EXPECT_FLOAT_EQ(v2.X, 1.0f);
EXPECT_FLOAT_EQ(v2.Y, 2.0f);