Browse Source

[ci] test StringTools.endsWith against unicode (closes #8980)

Aleksandr Kuzmenko 5 years ago
parent
commit
c8c28d4db1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/unit/src/unitstd/StringTools.unit.hx

+ 1 - 0
tests/unit/src/unitstd/StringTools.unit.hx

@@ -24,6 +24,7 @@ StringTools.endsWith("foo", "foo") == true;
 StringTools.endsWith("foo", "fooo") == false;
 StringTools.endsWith("foo", "") == true;
 StringTools.endsWith("", "") == true;
+StringTools.endsWith("μου\n","\n") == true;
 
 // isSpace
 StringTools.isSpace("", 0) == false;