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

Unified Diff: tests/language/regex/regress-6-9-regexp_test.dart

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed Ivan's comments. Created 6 years, 2 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 | « tests/language/regex/regexp_test.dart ('k') | tests/language/regex/regress-regexp-codeflush_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regex/regress-6-9-regexp_test.dart
diff --git a/tests/language/const_switch2_test.dart b/tests/language/regex/regress-6-9-regexp_test.dart
similarity index 58%
copy from tests/language/const_switch2_test.dart
copy to tests/language/regex/regress-6-9-regexp_test.dart
index 73728999353c1586d45a293b29d14a5b8744d86c..ab74d4ac9fd636c54679a70bc96c02c756dd1436 100644
--- a/tests/language/const_switch2_test.dart
+++ b/tests/language/regex/regress-6-9-regexp_test.dart
@@ -2,14 +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 'util.dart';
import 'package:expect/expect.dart';
-int main() {
- var a = [1,2,3][2];
- switch (a) {
- case 0.0: /// 01: compile-time error
- print("illegal"); /// 01: continued
- case 1:
- print("OK");
- }
-}
+void main() {
+ // Check that the perfect mask check isn't overly optimistic.
+
+ assertFalse(new RegExp(r"[6-9]").hasMatch('2'));
+}
« no previous file with comments | « tests/language/regex/regexp_test.dart ('k') | tests/language/regex/regress-regexp-codeflush_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698