Browse Source

added split("")

Nicolas Cannasse 16 years ago
parent
commit
e31fd7c97d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/unit/TestBasetypes.hx

+ 6 - 0
tests/unit/TestBasetypes.hx

@@ -26,6 +26,12 @@ class TestBasetypes extends Test {
 		unspec(function() String.fromCharCode(256));
 		unspec(function() String.fromCharCode(256));
 		eq( null + "x", "nullx" );
 		eq( null + "x", "nullx" );
 		eq( "x" + null, "xnull" );
 		eq( "x" + null, "xnull" );
+
+		var abc = "abc".split("");
+		eq( abc.length, 3 );
+		eq( abc[0], "a" );
+		eq( abc[1], "b" );
+		eq( abc[2], "c" );
 	}
 	}
 
 
 	function testMath() {
 	function testMath() {