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

Side by Side Diff: test/iterable_matchers_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/escape_test.dart ('k') | test/mirror_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.iterable_matchers_test; 5 library matcher.iterable_matchers_test;
6 6
7 import 'package:matcher/matcher.dart'; 7 import 'package:matcher/matcher.dart';
8 import 'package:unittest/unittest.dart' show test, group; 8 import 'package:test/test.dart' show test, group;
9 9
10 import 'test_utils.dart'; 10 import 'test_utils.dart';
11 11
12 void main() { 12 void main() {
13 test('isEmpty', () { 13 test('isEmpty', () {
14 shouldPass([], isEmpty); 14 shouldPass([], isEmpty);
15 shouldFail([1], isEmpty, "Expected: empty Actual: [1]"); 15 shouldFail([1], isEmpty, "Expected: empty Actual: [1]");
16 }); 16 });
17 17
18 test('isNotEmpty', () { 18 test('isNotEmpty', () {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 "Actual: SimpleIterable:[]"); 178 "Actual: SimpleIterable:[]");
179 }); 179 });
180 180
181 test('contains', () { 181 test('contains', () {
182 var d = new SimpleIterable(3); 182 var d = new SimpleIterable(3);
183 shouldPass(d, contains(2)); 183 shouldPass(d, contains(2));
184 shouldFail(d, contains(5), "Expected: contains <5> " 184 shouldFail(d, contains(5), "Expected: contains <5> "
185 "Actual: SimpleIterable:[3, 2, 1]"); 185 "Actual: SimpleIterable:[3, 2, 1]");
186 }); 186 });
187 } 187 }
OLDNEW
« no previous file with comments | « test/escape_test.dart ('k') | test/mirror_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698