Fixed tests.

This commit is contained in:
Jindra Petřík
2025-09-30 21:39:32 +02:00
parent dccf870ce0
commit 5db66ae32b
7 changed files with 81 additions and 4 deletions

View File

@@ -78,6 +78,7 @@ package
TestIfElse;
TestIfFinally;
TestIfInIf;
TestIfInsteadSwitch;
TestIfTry;
TestIgnoreAndOr;
TestImplicitCoerce;

View 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";
}
}
}