瀏覽代碼

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

Nicolas Cannasse 11 年之前
父節點
當前提交
98e51052da
共有 1 個文件被更改,包括 3 次插入1 次删除
  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, 0, 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;