#446 incorrect decompiled code: fixed

This commit is contained in:
Honfika
2013-12-27 11:22:16 +01:00
parent 2b79b84c71
commit a6eb3a9f0b
4 changed files with 79 additions and 1 deletions

View File

@@ -160,13 +160,19 @@ public class ActionScript3Test {
+ "}\r\n", false);
}
@Test
//@Test //todo honfika: re-enable after as3.swf is compiled
public void testPrecedence() {
decompileMethod("testPrecedence", "var a:* = 0;\r\n"
+ "a = (5 + 6) * 7;\r\n"
+ "a = 5 * (2 + 3);\r\n"
+ "a = 5 + 6 * 7;\r\n"
+ "a = 5 * 2 + 2;\r\n"
+ "a = 5 * (25 % 3);\r\n"
+ "a = 5 % (24 * 307);\r\n"
+ "a = 1 / (2 / 3);\r\n"
+ "a = 1 / (2 * 3);\r\n"
+ "a = 1 * 2 * 3;\r\n"
+ "a = 1 * 2 / 3;\r\n"
+ "trace(\"a=\" + a);\r\n", false);
}