Browse Source

protect poor flash8 from evil EReg unit tests

Simon Krajewski 12 years ago
parent
commit
f907f1e89f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/unit/unitstd/EReg.unit.hx

+ 2 - 2
tests/unit/unitstd/EReg.unit.hx

@@ -96,10 +96,10 @@ pos.len == 2;
 ~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$1") == "lead foo bar trail";
 ~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$$$1$$") == "lead $foo$ $bar$ trail";
 //~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$$$2$$") == "lead $$2$ $$2$ trail";
-#end
 
 // map
 ~/(Hello)/.map("Hello World", function(e) return "Hallo") == "Hallo World";
 ~/(Hello)/.map("Hello", function(e) return "Hallo") == "Hallo";
 ~/(World)/.map("Hello World", function(e) return "Hallo") == "Hello Hallo";
-~/(Hola)/.map("Hello World", function(e) return throw "not called") == "Hello World";
+~/(Hola)/.map("Hello World", function(e) return throw "not called") == "Hello World";
+#end