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

Unified Diff: tests/language/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/language/string_split_test.dart
diff --git a/tests/language/string_split_test.dart b/tests/language/string_split_test.dart
index 8cf00bb1a4aa0565607eeed933f2ec7f71fd1af2..c3c10d659a7cd73fce653b6a34bc747889be50ee 100644
--- a/tests/language/string_split_test.dart
+++ b/tests/language/string_split_test.dart
@@ -8,7 +8,7 @@ import "package:expect/expect.dart";
class EvilMatch implements Match {
int get start => 100000000;
int get end => 3;
- bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
+ bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
}
class EvilIterator implements Iterator {
@@ -21,11 +21,11 @@ class EvilIterable extends Iterable {
}
class EvilPattern implements Pattern {
- Iterable allMatches(String s, [int start=0]) => new EvilIterable();
- bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
+ Iterable allMatches(String s, [int start = 0]) => new EvilIterable();
+ bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
}
void main() {
- Expect.throws(() => "foo".split(new EvilPattern())[0].length,
- (e) => e is RangeError);
+ Expect.throws(
+ () => "foo".split(new EvilPattern())[0].length, (e) => e is RangeError);
}

Powered by Google App Engine
This is Rietveld 408576698