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

Side by Side Diff: test/pretty_print_test.dart

Issue 1151853004: pkg/matcher: upgrate tests to test (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: Created 5 years, 7 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 | « test/operator_matchers_test.dart ('k') | test/string_matchers_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library matcher.pretty_print_test; 5 library matcher.pretty_print_test;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:matcher/matcher.dart'; 9 import 'package:matcher/matcher.dart';
10 import 'package:matcher/src/pretty_print.dart'; 10 import 'package:matcher/src/pretty_print.dart';
11 import 'package:unittest/unittest.dart' show group, test, expect; 11 import 'package:test/test.dart' show group, test, expect;
12 12
13 class DefaultToString {} 13 class DefaultToString {}
14 14
15 class CustomToString { 15 class CustomToString {
16 String toString() => "string representation"; 16 String toString() => "string representation";
17 } 17 }
18 18
19 class _PrivateName { 19 class _PrivateName {
20 String toString() => "string representation"; 20 String toString() => "string representation";
21 } 21 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 test("that's not a list", () { 228 test("that's not a list", () {
229 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)), 229 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
230 equals("MappedListIterable:[2, 4, 6, 8]")); 230 equals("MappedListIterable:[2, 4, 6, 8]"));
231 }); 231 });
232 232
233 test("that's not a list and has a private name", () { 233 test("that's not a list and has a private name", () {
234 expect(prettyPrint(new _PrivateNameIterable()), equals("?:[1, 2, 3]")); 234 expect(prettyPrint(new _PrivateNameIterable()), equals("?:[1, 2, 3]"));
235 }); 235 });
236 }); 236 });
237 } 237 }
OLDNEW
« no previous file with comments | « test/operator_matchers_test.dart ('k') | test/string_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698