Browse Source

actually add TestJs

Simon Krajewski 11 years ago
parent
commit
be6804e0b9
1 changed files with 15 additions and 0 deletions
  1. 15 0
      tests/optimization/src/TestJs.hx

+ 15 - 0
tests/optimization/src/TestJs.hx

@@ -0,0 +1,15 @@
+class TestJs {
+	@:js('var x = 10;"" + x;var x1 = 10;"" + x1;var x2 = 10.0;"" + x2;var x3 = "10";x3;var x4 = true;"" + x4;')
+	static function testStdString() {
+        var x = 10;
+        Std.string(x);
+        var x:UInt = 10;
+        Std.string(x);
+        var x = 10.0;
+        Std.string(x);
+        var x = "10";
+        Std.string(x);
+        var x = true;
+        Std.string(x);
+	}
+}