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

Side by Side Diff: tests/corelib/regexp/non-character_test.dart

Issue 667043003: Port regexp tests from V8 to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'util.dart';
6 import 'package:expect/expect.dart';
7
8 void main() {
9 description(
10 'Test for regular expressions with non-character values in them, specifically in character classes.'
11 );
12
13 shouldBeNull(firstMatch("F", new RegExp(r"[\uD7FF]")));
14 shouldBeNull(firstMatch("0", new RegExp(r"[\uD800]")));
15 shouldBeNull(firstMatch("F", new RegExp(r"[\uDFFF]")));
16 shouldBeNull(firstMatch("E", new RegExp(r"[\uE000]")));
17 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDBF]")));
18 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDD0]")));
19 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDEF]")));
20 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDF0]")));
21 shouldBeNull(firstMatch("y", new RegExp(r"[\uFEFF]")));
22 shouldBeNull(firstMatch("y", new RegExp(r"[\uFEFF]")));
23 shouldBeNull(firstMatch("y", new RegExp(r"[\uFFFE]")));
24 shouldBeNull(firstMatch("y", new RegExp(r"[\uFFFF]")));
25 shouldBeNull(firstMatch("y", new RegExp(r"[\u10FFFF]")));
Lasse Reichstein Nielsen 2014/10/23 13:21:57 Looks deceptively like a six-digit unicode escape.
zerny-google 2014/10/24 12:38:37 Nope.
26 shouldBeNull(firstMatch("y", new RegExp(r"[\u110000]")));
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698