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

Side by Side Diff: tests/corelib/regexp/UC16_test.dart

Issue 2957593002: Spelling fixes e to i. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « tests/corelib/list_test.dart ('k') | tests/corelib/regexp/invalid-range-in-class_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. All rights reserved. 1 // Copyright (c) 2014, the Dart project authors. All rights reserved.
2 // Copyright 2008 the V8 project authors. All rights reserved. 2 // Copyright 2008 the V8 project authors. All rights reserved.
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 14 matching lines...) Expand all
25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 28
29 import 'v8_regexp_utils.dart'; 29 import 'v8_regexp_utils.dart';
30 import 'package:expect/expect.dart'; 30 import 'package:expect/expect.dart';
31 31
32 void main() { 32 void main() {
33 // UC16 33 // UC16
34 // Characters used: 34 // Characters used:
35 // "\u03a3\u03c2\u03c3\u039b\u03bb" - Sigma, final sigma, sigma, Lambda, lamda 35 // "\u03a3\u03c2\u03c3\u039b\u03bb" - Sigma, final sigma, sigma, Lambda,
36 // lambda
36 shouldBe( 37 shouldBe(
37 new RegExp(r"x(.)\1x", caseSensitive: false).firstMatch("x\u03a3\u03c3x"), 38 new RegExp(r"x(.)\1x", caseSensitive: false).firstMatch("x\u03a3\u03c3x"),
38 ["x\u03a3\u03c3x", "\u03a3"], 39 ["x\u03a3\u03c3x", "\u03a3"],
39 "backref-UC16"); 40 "backref-UC16");
40 assertFalse( 41 assertFalse(
41 new RegExp(r"x(...)\1", caseSensitive: false) 42 new RegExp(r"x(...)\1", caseSensitive: false)
42 .hasMatch("x\u03a3\u03c2\u03c3\u03c2\u03c3"), 43 .hasMatch("x\u03a3\u03c2\u03c3\u03c2\u03c3"),
43 "\1 ASCII, string short"); 44 "\1 ASCII, string short");
44 assertTrue( 45 assertTrue(
45 new RegExp(r"\u03a3((?:))\1\1x", caseSensitive: false) 46 new RegExp(r"\u03a3((?:))\1\1x", caseSensitive: false)
(...skipping 15 matching lines...) Expand all
61 [longUC16String, longUC16String.substring(1, 4)], 62 [longUC16String, longUC16String.substring(1, 4)],
62 "backref-UC16-twice"); 63 "backref-UC16-twice");
63 64
64 assertFalse(new RegExp(r"\xc1", caseSensitive: false).hasMatch('fooA'), 65 assertFalse(new RegExp(r"\xc1", caseSensitive: false).hasMatch('fooA'),
65 "quickcheck-uc16-pattern-ascii-subject"); 66 "quickcheck-uc16-pattern-ascii-subject");
66 assertFalse(new RegExp(r"[\xe9]").hasMatch('i'), 67 assertFalse(new RegExp(r"[\xe9]").hasMatch('i'),
67 "charclass-uc16-pattern-ascii-subject"); 68 "charclass-uc16-pattern-ascii-subject");
68 assertFalse(new RegExp(r"\u5e74|\u6708").hasMatch('t'), 69 assertFalse(new RegExp(r"\u5e74|\u6708").hasMatch('t'),
69 "alternation-uc16-pattern-ascii-subject"); 70 "alternation-uc16-pattern-ascii-subject");
70 } 71 }
OLDNEW
« no previous file with comments | « tests/corelib/list_test.dart ('k') | tests/corelib/regexp/invalid-range-in-class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698