| Index: tests/language/regex/non-capturing-backtracking_test.dart
|
| diff --git a/tests/language/deferred_no_such_method_test.dart b/tests/language/regex/non-capturing-backtracking_test.dart
|
| similarity index 54%
|
| copy from tests/language/deferred_no_such_method_test.dart
|
| copy to tests/language/regex/non-capturing-backtracking_test.dart
|
| index 9f1b232ce6d9dc4b483c9d6ff71c60f809239bee..3bf3c7702d0181e91a69488ca8a337648c789ebd 100644
|
| --- a/tests/language/deferred_no_such_method_test.dart
|
| +++ b/tests/language/regex/non-capturing-backtracking_test.dart
|
| @@ -2,15 +2,14 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +import 'util.dart';
|
| import 'package:expect/expect.dart';
|
| -import 'package:async_helper/async_helper.dart';
|
| -
|
| -import "deferred_no_such_method_lib.dart" deferred as lib;
|
|
|
| void main() {
|
| - asyncStart();
|
| - lib.loadLibrary().then((_) {
|
| - Expect.equals(42, new lib.C().nonExisting());
|
| - asyncEnd();
|
| - });
|
| -}
|
| + description(
|
| + "This page tests for proper backtracking with greedy quantifiers and non-capturing parentheses."
|
| + );
|
| +
|
| + var re = new RegExp(r"(?:a*)a");
|
| + shouldBe(re.firstMatch('a'), ['a']);
|
| +}
|
|
|