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

Side by Side Diff: test/core_matchers_test.dart

Issue 1584563003: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/matcher@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « lib/src/util.dart ('k') | test/escape_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.core_matchers_test;
6
7 import 'package:matcher/matcher.dart'; 5 import 'package:matcher/matcher.dart';
8 import 'package:test/test.dart' show test, group; 6 import 'package:test/test.dart' show test, group;
9 7
10 import 'test_utils.dart'; 8 import 'test_utils.dart';
11 9
12 void main() { 10 void main() {
13 test('isTrue', () { 11 test('isTrue', () {
14 shouldPass(true, isTrue); 12 shouldPass(true, isTrue);
15 shouldFail(false, isTrue, "Expected: true Actual: <false>"); 13 shouldFail(false, isTrue, "Expected: true Actual: <false>");
16 }); 14 });
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 w.price = 10; 190 w.price = 10;
193 shouldPass(w, new HasPrice(10)); 191 shouldPass(w, new HasPrice(10));
194 shouldPass(w, new HasPrice(greaterThan(0))); 192 shouldPass(w, new HasPrice(greaterThan(0)));
195 shouldFail(w, new HasPrice(greaterThan(10)), 193 shouldFail(w, new HasPrice(greaterThan(10)),
196 "Expected: Widget with a price that is a value greater than <10> " 194 "Expected: Widget with a price that is a value greater than <10> "
197 "Actual: <Instance of 'Widget'> " 195 "Actual: <Instance of 'Widget'> "
198 "Which: has price with value <10> which is not " 196 "Which: has price with value <10> which is not "
199 "a value greater than <10>"); 197 "a value greater than <10>");
200 }); 198 });
201 } 199 }
OLDNEW
« no previous file with comments | « lib/src/util.dart ('k') | test/escape_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698