Skip to content

Commit

Permalink
move wrong testfiles elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
y5nw committed Sep 15, 2024
1 parent 664d947 commit ee881a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions games/devtest/mods/testtranslations/test_locale/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The translation files in this directory intentionally include errors (which
would be reported when someone starts the devtest game in the de locale). This
allows the unittest to check that the translation file reader also handles
files that include errors.
2 changes: 1 addition & 1 deletion src/unittest/test_translations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static std::string read_translation_file(const std::string &filename)
{
auto gamespec = findSubgame("devtest");
REQUIRE(gamespec.isValid());
auto path = gamespec.gamemods_path + (DIR_DELIM "testtranslations" DIR_DELIM "locale" DIR_DELIM) + filename;
auto path = gamespec.gamemods_path + (DIR_DELIM "testtranslations" DIR_DELIM "test_locale" DIR_DELIM) + filename;
std::string content;
REQUIRE(fs::ReadFile(path, content));
return content;
Expand Down

0 comments on commit ee881a4

Please sign in to comment.