Skip to content

Commit

Permalink
should fix the partial coverage on equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacey committed Oct 6, 2023
1 parent c285263 commit 96758b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Vec3Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ TEST(Vec3, DefaultCtor)
EXPECT_TRUE(test == result);
}


TEST(Vec3, VectorTest)
{
std::vector< ngl::Vec3 > a(10);
Expand Down Expand Up @@ -217,6 +218,14 @@ TEST(Vec3,equality)
v1.set(2.0f,3.0f,4.0f);
EXPECT_FALSE(v==v1);
EXPECT_TRUE(v!=v1);
ngl::Vec3 test;
ngl::Vec3 zero=ngl::Vec3::zero();
ngl::Vec3 one(1.0f,1.0f,1.0f);
EXPECT_TRUE(test==zero);
EXPECT_FALSE(test==one);
EXPECT_TRUE(test!=one);
EXPECT_FALSE(test!=zero);

}

TEST(Vec3,multVec3)
Expand Down

0 comments on commit 96758b6

Please sign in to comment.