From e81a3b80df9384e23882e8ee53857717896d6cd5 Mon Sep 17 00:00:00 2001 From: Rodrigo Avancini Date: Wed, 26 Sep 2018 17:18:14 -0300 Subject: [PATCH] Add test #2245. --- packages/base/tests/functional/basics/Utils.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/base/tests/functional/basics/Utils.lua b/packages/base/tests/functional/basics/Utils.lua index dcd7621b..4f873199 100644 --- a/packages/base/tests/functional/basics/Utils.lua +++ b/packages/base/tests/functional/basics/Utils.lua @@ -1161,6 +1161,13 @@ return{ end) unitTest:assertEquals(count, 84) + end, + replaceLatinCharacters = function(unitTest) + local str = "action" + unitTest:assertEquals(replaceLatinCharacters(str), "action") + + str = "ação" + unitTest:assertEquals(replaceLatinCharacters(str), "a\xE7\xE3o") end }