summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-16 05:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-16 05:04:05 +0300
commitd8c1edd40d36f656b22d46068cfacaff031b5d86 (patch)
treeb787a7c3e989e51cdef307262924e355bc847de3 /src
parentece09fcf8eca867459c9eacd16530314fd2a6b8f (diff)
downloadmanaplus-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.gz
manaplus-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.bz2
manaplus-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.xz
manaplus-d8c1edd40d36f656b22d46068cfacaff031b5d86.zip
Disable unit test for timeDiffToString if NLS not enabled.
Diffstat (limited to 'src')
-rw-r--r--src/utils/stringutils_unittest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 2230e3646..d46e68bb7 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -1438,8 +1438,7 @@ TEST_CASE("stringuntils secureChatCommand")
REQUIRE(str == "_#test");
}
-#ifndef WIN32
-// disabled on windows for now, because no gettext
+#ifdef ENABLE_NLS
TEST_CASE("stringuntils timeDiffToString")
{
REQUIRE(timeDiffToString(60 * 60 * 24 * 7) == "1 week");
@@ -1470,7 +1469,7 @@ TEST_CASE("stringuntils timeDiffToString")
REQUIRE(timeDiffToString(60 * 7
) == "7 minutes");
}
-#endif // WIN32
+#endif // ENABLE_NLS
TEST_CASE("stringuntils replaceItemLinks")
{