| Index: tests/language/div_with_power_of_two_test.dart
|
| ===================================================================
|
| --- tests/language/div_with_power_of_two_test.dart (revision 27700)
|
| +++ tests/language/div_with_power_of_two_test.dart (working copy)
|
| @@ -98,9 +98,8 @@
|
| Expect.equals(res, f(arg));
|
| }
|
| }
|
| - try {
|
| - divBy0(4);
|
| - Expect.fail("Should have thrown exception.");
|
| - } on IntegerDivisionByZeroException catch (e) {}
|
| + Expect.throws(() => divBy0(4),
|
| + (e) => e is IntegerDivisionByZeroException
|
| + || e is UnsupportedError);
|
| }
|
| }
|
|
|