| Index: frog/tests/leg_only/src/BailoutTest.dart
|
| ===================================================================
|
| --- frog/tests/leg_only/src/BailoutTest.dart (revision 5318)
|
| +++ frog/tests/leg_only/src/BailoutTest.dart (working copy)
|
| @@ -42,6 +42,17 @@
|
| return res;
|
| }
|
|
|
| +void forInBailout() {
|
| + var n = myString.length;
|
| + var res = '';
|
| + for (int i in myString.charCodes()) {
|
| + var o = myString;
|
| + if (false) o[1] = 2;
|
| + res += new String.fromCharCodes([i]);
|
| + }
|
| + return res;
|
| +}
|
| +
|
| void innerForBailout() {
|
| var n = myString.length;
|
| var res = '';
|
| @@ -192,6 +203,7 @@
|
|
|
| myString = '1234';
|
| Expect.equals('1234', forBailout());
|
| + Expect.equals('1234', forInBailout());
|
| Expect.equals('12341234', innerForBailout());
|
|
|
| Expect.equals('1234', whileBailout());
|
|
|