|
@@ -45,8 +45,6 @@ class TestYieldTryCatch extends BaseCase {
|
|
|
dummy += '6';
|
|
|
}
|
|
|
|
|
|
- #if broken
|
|
|
-
|
|
|
public function testTryCatch_multiCatch() {
|
|
|
assert([10], tryCatch_multiCatch('Error'));
|
|
|
Assert.equals('12458', dummy);
|
|
@@ -74,6 +72,8 @@ class TestYieldTryCatch extends BaseCase {
|
|
|
dummy += '8';
|
|
|
}
|
|
|
|
|
|
+ #if broken
|
|
|
+
|
|
|
public function testTryCatch_nested() {
|
|
|
assert([10], tryCatch_nested(1));
|
|
|
Assert.equals('124569', dummy);
|
|
@@ -121,6 +121,8 @@ class TestYieldTryCatch extends BaseCase {
|
|
|
@:yield return 10;
|
|
|
}
|
|
|
|
|
|
+ #end
|
|
|
+
|
|
|
public function testTryCatch_exceptionNotCaught_thrownOutOfYieldContext() {
|
|
|
try {
|
|
|
assert([], tryCatchNotCaught());
|
|
@@ -147,8 +149,6 @@ class TestYieldTryCatch extends BaseCase {
|
|
|
dummy += '6';
|
|
|
}
|
|
|
|
|
|
- #end
|
|
|
-
|
|
|
public function testTryCatch_captureVariable() {
|
|
|
assert([10], tryCatch_captureVariable());
|
|
|
Assert.equals('12456', dummy);
|