mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
bb6698e373
This allows querying of the most specific ZoneData for a given point
22 lines
500 B
C++
22 lines
500 B
C++
#include <boost/test/unit_test.hpp>
|
|
#include <loaders/LoaderIPL.hpp>
|
|
#include "test_globals.hpp"
|
|
|
|
BOOST_AUTO_TEST_SUITE(LoaderIPLTests)
|
|
|
|
#if RW_TEST_WITH_DATA
|
|
BOOST_AUTO_TEST_CASE(test_load_zones) {
|
|
LoaderIPL loader;
|
|
const auto& gdpath = Global::get().getGamePath();
|
|
BOOST_REQUIRE(loader.load(gdpath + "/data/gta3.zon"));
|
|
|
|
BOOST_REQUIRE(loader.zones.size() > 2);
|
|
|
|
auto& zone1 = loader.zones[0];
|
|
BOOST_CHECK_EQUAL(zone1.name, "ROADBR1");
|
|
}
|
|
|
|
#endif
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|