mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-03 17:19:46 +02:00
16 lines
482 B
C++
16 lines
482 B
C++
#include <boost/test/unit_test.hpp>
|
|
#include <data/Chase.hpp>
|
|
#include "test_Globals.hpp"
|
|
|
|
BOOST_AUTO_TEST_SUITE(ChaseTests, DATA_TEST_PREDICATE)
|
|
|
|
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);
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|