Browse Source

unit test fix

Simon Krajewski 12 years ago
parent
commit
35e353e374
2 changed files with 2 additions and 1 deletions
  1. 1 0
      main.ml
  2. 1 1
      tests/unit/TestMisc.hx

+ 1 - 0
main.ml

@@ -76,6 +76,7 @@ let deprecated = [
 	"Class not found : IntIter","IntIter was renamed to IntIterator";
 	"EReg has no field customReplace","EReg.customReplace was renamed to EReg.map";
 	"#StringTools has no field isEOF","StringTools.isEOF was renamed to StringTools.isEof";
+	"Class not found : haxe.BaseCode","haxe.BaseCode was moved to haxe.crypto.BaseCode"
 ]
 
 let error ctx msg p =

+ 1 - 1
tests/unit/TestMisc.hx

@@ -306,7 +306,7 @@ class TestMisc extends Test {
 	}
 
 	function testBaseCode() {
-		var b = new haxe.BaseCode(haxe.io.Bytes.ofString("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"));
+		var b = new haxe.crypto.BaseCode(haxe.io.Bytes.ofString("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"));
 		eq( b.encodeString("Héllow"), "iceFr6NLtM" );
 		eq( b.decodeString("iceFr6NLtM"), "Héllow" );
 	}