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

Unified Diff: tests/corelib/reg_exp_unicode_test.dart

Issue 11411092: Revert "Add some support for the code-point code-unit distinction." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/corelib/reg_exp_unicode_2_test.dart ('k') | tests/corelib/string_from_list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp_unicode_test.dart
diff --git a/tests/corelib/reg_exp_unicode_test.dart b/tests/corelib/reg_exp_unicode_test.dart
deleted file mode 100644
index 5cdc0fda12c276b5d93364419bc2427df334da9a..0000000000000000000000000000000000000000
--- a/tests/corelib/reg_exp_unicode_test.dart
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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.
-// Dart test for testing regular expressions in Dart.
-
-main() {
- String str = "\u{10000}";
-
- // Dot will match surrogates too (ideally it should match a pair).
- Expect.isTrue(new RegExp(r'^..?$').hasMatch(str));
-
- // Surrogate pair in a RegExp.
- Expect.isTrue(new RegExp('^\u{10000}\$').hasMatch(str));
-
- // Mormon characters should work too.
- String mitt = "My name is 𐐣𐐮𐐻";
- Expect.isTrue(new RegExp(r'𐐣𐐮𐐻$').hasMatch(mitt));
-
- // Character classes sort of work, but the surrogates are treated as separate
- // characters.
- Expect.isTrue(new RegExp(r'[𐐣𐐮𐐻]+$').hasMatch(mitt));
-}
« no previous file with comments | « tests/corelib/reg_exp_unicode_2_test.dart ('k') | tests/corelib/string_from_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698