mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 21:35:05 +00:00
Fixed tests.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -78,6 +78,7 @@ package
|
||||
TestIfElse;
|
||||
TestIfFinally;
|
||||
TestIfInIf;
|
||||
TestIfInsteadSwitch;
|
||||
TestIfTry;
|
||||
TestIgnoreAndOr;
|
||||
TestImplicitCoerce;
|
||||
|
||||
23
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestIfInsteadSwitch.as
vendored
Normal file
23
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestIfInsteadSwitch.as
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestIfInsteadSwitch
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a:int = 5;
|
||||
if(a > 5)
|
||||
{
|
||||
if(a === 0)
|
||||
{
|
||||
trace("X");
|
||||
}
|
||||
}
|
||||
if(a === 1)
|
||||
{
|
||||
return "A";
|
||||
}
|
||||
return "B";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user