diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/test-core-eval.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp index eca88db81..1c2ae858a 100644 --- a/tests/unit/core/test-core-eval.cpp +++ b/tests/unit/core/test-core-eval.cpp @@ -751,6 +751,13 @@ TEST(CoreEval, EvalExpression) WEE_CHECK_EVAL("18", "${calc:(5+1)*3}"); WEE_CHECK_EVAL("123129", "${calc:${repeat:2,123}+2*3}"); + /* test translation */ + setlocale (LC_ALL, "fr_FR.UTF-8"); + WEE_CHECK_EVAL("", "${translate:}"); + WEE_CHECK_EVAL("abcdef", "${translate:abcdef}"); + WEE_CHECK_EVAL("Extension", "${translate:Plugin}"); + setlocale (LC_ALL, ""); + /* test option */ hashtable_set (secure_hashtable_data, "sec_option", "sec_value"); WEE_CHECK_EVAL("sec_value", "${sec.data.sec_option}"); |