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

Unified Diff: tests/corelib/string_split_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/corelib/string_split_test.dart
diff --git a/tests/corelib/string_split_test.dart b/tests/corelib/string_split_test.dart
index 3f63ed173964f370178fc45ff51c0aba61fba71b..de7b2492eba492f35821d37b4f5c79e1c9c9eae7 100644
--- a/tests/corelib/string_split_test.dart
+++ b/tests/corelib/string_split_test.dart
@@ -10,7 +10,6 @@ main() {
testSplitPattern();
}
-
testSplit(List expect, String string, Pattern pattern) {
String patternString;
if (pattern is String) {
@@ -20,8 +19,8 @@ testSplit(List expect, String string, Pattern pattern) {
} else {
patternString = pattern.toString();
}
- Expect.listEquals(expect, string.split(pattern),
- '"$string".split($patternString)');
+ Expect.listEquals(
+ expect, string.split(pattern), '"$string".split($patternString)');
}
/** String patterns. */
@@ -43,8 +42,8 @@ void testSplitString() {
// No overlapping matches. Match as early as possible.
testSplit(["", "", "", "a"], "aaaaaaa", "aa");
// Cannot split the empty string.
- testSplit([], "", ""); // Match.
- testSplit([""], "", "a"); // No match.
+ testSplit([], "", ""); // Match.
+ testSplit([""], "", "a"); // No match.
}
/** RegExp patterns. */

Powered by Google App Engine
This is Rietveld 408576698