mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-10 04:42:38 +01:00
46cd7b8f51
- Replace background model loader with generic background loader - Replace ModelHandle object with generic resource handle
24 lines
418 B
C++
24 lines
418 B
C++
#include <boost/test/unit_test.hpp>
|
|
#include "test_globals.hpp"
|
|
#include <data/GameTexts.hpp>
|
|
#include <loaders/LoaderGXT.hpp>
|
|
|
|
BOOST_AUTO_TEST_SUITE(TextTests)
|
|
|
|
BOOST_AUTO_TEST_CASE(load_test)
|
|
{
|
|
{
|
|
auto d = Global::get().e->gameData.openFile("english.gxt");
|
|
|
|
GameTexts texts;
|
|
|
|
LoaderGXT loader;
|
|
|
|
loader.load( texts, d );
|
|
|
|
BOOST_CHECK_EQUAL( texts.text("1008"), "BUSTED" );
|
|
}
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|