2016-04-13 02:47:19 +02:00
|
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
#include <data/Chase.hpp>
|
2017-10-26 03:51:24 +02:00
|
|
|
#include "test_Globals.hpp"
|
2016-04-13 02:47:19 +02:00
|
|
|
|
2019-01-18 02:29:59 +01:00
|
|
|
BOOST_AUTO_TEST_SUITE(ChaseTests, DATA_TEST_PREDICATE)
|
2016-04-13 02:47:19 +02:00
|
|
|
|
2016-09-09 22:13:22 +02:00
|
|
|
BOOST_AUTO_TEST_CASE(test_load_keyframes) {
|
|
|
|
std::vector<ChaseKeyframe> keyframes;
|
|
|
|
BOOST_REQUIRE(ChaseKeyframe::load(
|
|
|
|
Global::getGamePath() + "/data/paths/CHASE0.DAT", keyframes));
|
|
|
|
BOOST_REQUIRE(keyframes.size() == 5400);
|
|
|
|
BOOST_CHECK_CLOSE(keyframes[0].position.x, 273.5422, 0.1);
|
2016-04-13 02:47:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|