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

Side by Side Diff: tests/corelib_2/regexp/v8_regexp_utils.dart

Issue 2985823002: Migrated test block 24 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 4 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Utility functions to easily port V8 tests. 5 // Utility functions to easily port V8 tests.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 void assertEquals(actual, expected, [String message = null]) { 9 void assertEquals(actual, expected, [String message = null]) {
10 Expect.equals(actual, expected, message); 10 Expect.equals(actual, expected, message);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Expect.equals(expected[i], actual.group(i), message); 56 Expect.equals(expected[i], actual.group(i), message);
57 } 57 }
58 } 58 }
59 } 59 }
60 60
61 Match firstMatch(String str, RegExp pattern) => pattern.firstMatch(str); 61 Match firstMatch(String str, RegExp pattern) => pattern.firstMatch(str);
62 List<String> allStringMatches(String str, RegExp pattern) => 62 List<String> allStringMatches(String str, RegExp pattern) =>
63 pattern.allMatches(str).map((Match m) => m.group(0)).toList(); 63 pattern.allMatches(str).map((Match m) => m.group(0)).toList();
64 64
65 void description(str) {} 65 void description(str) {}
OLDNEW
« no previous file with comments | « tests/corelib_2/regexp/unicodeCaseInsensitive_test.dart ('k') | tests/corelib_2/regexp/zero-length-alternatives_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698