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
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE(ChaseTests)
|
|
|
|
|
2016-06-16 22:11:55 +02:00
|
|
|
#if RW_TEST_WITH_DATA
|
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
|
|
|
}
|
2016-06-16 22:11:55 +02:00
|
|
|
#endif
|
2016-04-13 02:47:19 +02:00
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|