Nicolas Cannasse 16 years ago
parent
commit
25218daf8f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/unit/TestMisc.hx

+ 5 - 0
tests/unit/TestMisc.hx

@@ -38,6 +38,11 @@ class TestMisc extends Test {
 		eq( b.decodeString("iceFr6NLtM"), "Héllow" );
 	}
 
+	function testUrlEncode() {
+		eq( StringTools.urlEncode("é"), "%C3%A9" );
+		eq( StringTools.urlDecode("%C3%A9"), "é" );
+	}
+
 	function opt1( ?x : Int, ?y : String ) {
 		return { x : x, y : y };
 	}