Browse Source

unspecify Utf8.sub outside of string range (causes error on Neko)

Nicolas Cannasse 11 years ago
parent
commit
98e51052da
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/unit/unitstd/haxe/Utf8.unit.hx

+ 3 - 1
tests/unit/unitstd/haxe/Utf8.unit.hx

@@ -35,4 +35,6 @@ haxe.Utf8.compare(haxe.Utf8.sub(str, 0, 2), "あé") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 2), "éい") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 2), "éい") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 0, 0), "") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 0, 0), "") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 0), "") == 0;
 haxe.Utf8.compare(haxe.Utf8.sub(str, 1, 0), "") == 0;
-haxe.Utf8.compare(haxe.Utf8.sub(str, 9, 0), "") == 0;
+
+// unspecify outside of range Utf8.sub
+// haxe.Utf8.compare(haxe.Utf8.sub(str, 9, 0), "") == 0;