1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 20:02:40 +01:00

Merge pull request #546 from ShFil119/fix_test_activities

Fix data test `test_activities`
This commit is contained in:
Daniel Evans 2018-07-28 11:12:31 +01:00 committed by GitHub
commit ac7ab38360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,10 @@ BOOST_AUTO_TEST_CASE(test_activities) {
Global::get().e->dynamicsWorld->stepSimulation(1.f / 60.f);
}
BOOST_CHECK_LT(
glm::distance(character->getPosition(), {10.f, 10.f, 0.f}), 0.1f);
// Actually GoTo ignores z axis (up)
BOOST_CHECK_LT(glm::distance(glm::vec2{character->getPosition()},
{10.f, 10.f}),
0.1f);
Global::get().e->destroyObject(character);
}