| Index: tests/standalone/assert_test.dart
|
| diff --git a/tests/standalone/assert_test.dart b/tests/standalone/assert_test.dart
|
| index add14e3a93e8e6c313acd5f7b8a8cd4f0d98b2f4..17f9e314a5b467209cb8aa6b5e2e5b7b7f55cd98 100644
|
| --- a/tests/standalone/assert_test.dart
|
| +++ b/tests/standalone/assert_test.dart
|
| @@ -14,18 +14,19 @@ class AssertTest {
|
| Expect.fail("Assertion 'false' didn't fail.");
|
| } on AssertionError catch (error) {
|
| Expect.isTrue(error.toString().contains("'false'"));
|
| - Expect.isTrue(error.stackTrace.toString().contains(
|
| - "assert_test.dart:13:14"));
|
| + Expect.isTrue(
|
| + error.stackTrace.toString().contains("assert_test.dart:13:14"));
|
| }
|
| }
|
| +
|
| static testClosure() {
|
| try {
|
| assert(() => false);
|
| Expect.fail("Assertion '() => false' didn't fail.");
|
| } on AssertionError catch (error) {
|
| Expect.isTrue(error.toString().contains("'() => false'"));
|
| - Expect.isTrue(error.stackTrace.toString().contains(
|
| - "assert_test.dart:23:14"));
|
| + Expect.isTrue(
|
| + error.stackTrace.toString().contains("assert_test.dart:24:14"));
|
| }
|
| }
|
|
|
|
|