summaryrefslogtreecommitdiffstats
path: root/tests/core/string/test_translation.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/string/test_translation.h')
-rw-r--r--tests/core/string/test_translation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/string/test_translation.h b/tests/core/string/test_translation.h
index bf9674d6b1..acdd851b29 100644
--- a/tests/core/string/test_translation.h
+++ b/tests/core/string/test_translation.h
@@ -129,6 +129,7 @@ TEST_CASE("[TranslationPO] Plural messages") {
CHECK(vformat(translation->get_plural_message("There are %d apples", "", 2), 2) == "Il y a 2 pommes");
}
+#ifdef TOOLS_ENABLED
TEST_CASE("[OptimizedTranslation] Generate from Translation and read messages") {
Ref<Translation> translation = memnew(Translation);
translation->set_locale("fr");
@@ -150,7 +151,6 @@ TEST_CASE("[OptimizedTranslation] Generate from Translation and read messages")
CHECK(messages.size() == 0);
}
-#ifdef TOOLS_ENABLED
TEST_CASE("[TranslationCSV] CSV import") {
Ref<ResourceImporterCSVTranslation> import_csv_translation = memnew(ResourceImporterCSVTranslation);