Explorar o código

unspecified haxe.Template for Flash8 (not working)

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
8daae1ea62
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/unit/unitstd/haxe/Template.unit.hx

+ 3 - 1
tests/unit/unitstd/haxe/Template.unit.hx

@@ -1,3 +1,4 @@
+#if !flash8
 // normal
 var tpl = new haxe.Template("My name is <strong>::name::</strong> and I'm <em>::age::</em> years old.");
 var output = tpl.execute( { name : "John", age : 33 } );
@@ -18,4 +19,5 @@ function myfun( resolve : String -> Dynamic, title : String, p : Int ) {
 }
 var t1 = new haxe.Template("Call macro : $$myfun(Hello,::param::)");
 var str = t1.execute({ param : 55, mult : 2 },{ myfun : myfun });
-str == "Call macro : [Hello=110]";
+str == "Call macro : [Hello=110]";
+#end