瀏覽代碼

added two failing unit tests (fixed issue #892)

Simon Krajewski 13 年之前
父節點
當前提交
a80d21e81c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/unit/TestBasetypes.hx

+ 2 - 0
tests/unit/TestBasetypes.hx

@@ -211,6 +211,8 @@ class TestBasetypes extends Test {
 		eq( StringTools.fastCodeAt(str, 0), "a".code );
 		eq( StringTools.fastCodeAt(str, 1), "b".code );
 		eq( StringTools.fastCodeAt(str, 2), "c".code );
+		eq(StringTools.fastCodeAt(String.fromCharCode(128), 0), 128);
+		eq(StringTools.fastCodeAt(String.fromCharCode(255), 0), 255);
 		f( StringTools.isEOF(StringTools.fastCodeAt(str, 2)) );
 		t( StringTools.isEOF(StringTools.fastCodeAt(str, 3)) );