Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: tests/corelib/regexp/issue_19193_test.dart

Issue 890533002: Regression test for issue 19193. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/regexp/issue_19193_test.dart
diff --git a/tests/language/regress_21998_1_test.dart b/tests/corelib/regexp/issue_19193_test.dart
similarity index 52%
copy from tests/language/regress_21998_1_test.dart
copy to tests/corelib/regexp/issue_19193_test.dart
index 3237f3396629f6fd11270e1adc290bec78713958..41f8fc09c4f4b3fed49ecc6161d12632eb5477c7 100644
--- a/tests/language/regress_21998_1_test.dart
+++ b/tests/corelib/regexp/issue_19193_test.dart
@@ -2,17 +2,11 @@
// 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 'dart:math' as Math;
import 'package:expect/expect.dart';
-main() {
- Expect.equals(4, new C().m());
+// Regression test for http://dartbug.com/19193
+void main() {
+ RegExp re = new RegExp(r'.*(a+)+\d');
+ Expect.isTrue("a0aaaaaaaaaaaaa".contains(re));
+ Expect.isTrue("a0aaaaaaaaaaaaaa".contains(re)); // false when using JSCRE.
}
-
-class C {
- max(a) => a;
-
- m() {
- return max(Math.max(2, 4));
- }
-}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698