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

Unified Diff: test/pretty_print_test.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits Created 5 years, 11 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
« no previous file with comments | « test/operator_matchers_test.dart ('k') | test/pretty_print_unminified_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/pretty_print_test.dart
diff --git a/test/pretty_print_test.dart b/test/pretty_print_test.dart
index 27bbfadf137743b5b5c59513c636ca2a213327dd..b8bd847dbb332698c0ec5fc9becadef84de698a6 100644
--- a/test/pretty_print_test.dart
+++ b/test/pretty_print_test.dart
@@ -14,8 +14,7 @@ void main() {
expect(prettyPrint(12.13), equals('<12.13>'));
expect(prettyPrint(true), equals('<true>'));
expect(prettyPrint(null), equals('<null>'));
- expect(prettyPrint(() => 12),
- matches(r'<Closure(: \(\) => dynamic)?>'));
+ expect(prettyPrint(() => 12), matches(r'<Closure(: \(\) => dynamic)?>'));
});
group('with a string', () {
@@ -24,15 +23,14 @@ void main() {
});
test('containing newlines', () {
- expect(prettyPrint('foo\nbar\nbaz'), equals(
- "'foo\\n'\n"
+ expect(prettyPrint('foo\nbar\nbaz'), equals("'foo\\n'\n"
" 'bar\\n'\n"
" 'baz'"));
});
test('containing escapable characters', () {
- expect(prettyPrint("foo\rbar\tbaz'qux"),
- equals("'foo\\rbar\\tbaz\\'qux'"));
+ expect(
+ prettyPrint("foo\rbar\tbaz'qux"), equals("'foo\\rbar\\tbaz\\'qux'"));
});
});
@@ -78,10 +76,8 @@ void main() {
});
test("factors indentation into maxLineLength", () {
- expect(prettyPrint([
- "foo\nbar",
- [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
- ], maxLineLength: 30), equals("[\n"
+ expect(prettyPrint(["foo\nbar", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],],
+ maxLineLength: 30), equals("[\n"
" 'foo\\n'\n"
" 'bar',\n"
" [\n"
@@ -173,17 +169,16 @@ void main() {
test("factors indentation into maxLineLength", () {
expect(prettyPrint(["foo\nbar", {'0': 1, '2': 3, '4': 5, '6': 7}],
- maxLineLength: 32),
- equals("[\n"
- " 'foo\\n'\n"
- " 'bar',\n"
- " {\n"
- " '0': 1,\n"
- " '2': 3,\n"
- " '4': 5,\n"
- " '6': 7\n"
- " }\n"
- "]"));
+ maxLineLength: 32), equals("[\n"
+ " 'foo\\n'\n"
+ " 'bar',\n"
+ " {\n"
+ " '0': 1,\n"
+ " '2': 3,\n"
+ " '4': 5,\n"
+ " '6': 7\n"
+ " }\n"
+ "]"));
});
test("that's under maxItems", () {
« no previous file with comments | « test/operator_matchers_test.dart ('k') | test/pretty_print_unminified_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698