Unit test fixes

This commit is contained in:
Jérôme Leclercq
2018-09-05 15:15:26 +02:00
parent 960af3afa3
commit 97cdb110ae
3 changed files with 5 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ SCENARIO("RigidBody2D", "[PHYSICS2D][RIGIDBODY2D]")
{
CHECK(body.GetAABB() == aabb);
CHECK(body.GetAngularVelocity() == Approx(0.f));
CHECK(body.GetCenterOfGravity() == Nz::Vector2f::Zero());
CHECK(body.GetMassCenter() == Nz::Vector2f::Zero());
CHECK(body.GetGeom() == box);
CHECK(body.GetMass() == Approx(mass));
CHECK(body.GetPosition() == position);
@@ -150,7 +150,7 @@ SCENARIO("RigidBody2D", "[PHYSICS2D][RIGIDBODY2D]")
{
aabb.Translate(velocity);
CHECK(body.GetAABB() == aabb);
CHECK(body.GetCenterOfGravity() == Nz::Vector2f::Zero());
CHECK(body.GetMassCenter() == Nz::Vector2f::Zero());
CHECK(body.GetPosition() == position);
CHECK(body.GetVelocity() == velocity);
}