mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
24 lines
415 B
C++
24 lines
415 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->data->openFile("english.gxt");
|
|
|
|
GameTexts texts;
|
|
|
|
LoaderGXT loader;
|
|
|
|
loader.load( texts, d );
|
|
|
|
BOOST_CHECK_EQUAL( texts.text("1008"), "BUSTED" );
|
|
}
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|