AS3 additional Vector test

This commit is contained in:
Jindra Petk
2014-05-08 09:03:37 +02:00
parent 1061aa9900
commit 0ba3ad6e1e
4 changed files with 16 additions and 4 deletions

View File

@@ -209,6 +209,7 @@ public class ActionScript3Test {
+ "trace(\"new line \\r\\n hello!\");\r\n", false);
}
@Test
public void testContinueLevels() {
decompileMethod("testContinueLevels", "var b:* = undefined;\r\n"
+ "var c:* = undefined;\r\n"
@@ -808,7 +809,7 @@ public class ActionScript3Test {
public void testStringConcat() {
decompileMethod("testStringConcat", "var k:* = 8;\r\n"
+ "this.traceIt(\"hello\" + 5 * 6);\r\n"
+ "this.traceIt(\"hello\" + (k-1));\r\n"
+ "this.traceIt(\"hello\" + (k - 1));\r\n"
+ "this.traceIt(\"hello\" + 5 + 6);\r\n", false);
}
@@ -889,6 +890,12 @@ public class ActionScript3Test {
+ "return 4;\r\n", false);
}
@Test
public void testVector2() {
decompileMethod("testVector2", "var a:Vector.<Vector.<int>> = new Vector.<Vector.<int>>();\r\n"
+ "var b:Vector.<int> = new <int>[10,20,30];\r\n", false);
}
@Test
public void testOptionalParameters() {
String methodName = "testOptionalParameters";