Browse Source

added two failing unit tests (fixed issue #892)

Simon Krajewski 13 years ago
parent
commit
a80d21e81c
1 changed files with 2 additions and 0 deletions
  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, 0), "a".code );
 		eq( StringTools.fastCodeAt(str, 1), "b".code );
 		eq( StringTools.fastCodeAt(str, 1), "b".code );
 		eq( StringTools.fastCodeAt(str, 2), "c".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)) );
 		f( StringTools.isEOF(StringTools.fastCodeAt(str, 2)) );
 		t( StringTools.isEOF(StringTools.fastCodeAt(str, 3)) );
 		t( StringTools.isEOF(StringTools.fastCodeAt(str, 3)) );