mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 20:04:37 +00:00
#446 incorrect decompiled code: fixed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user