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

Side by Side Diff: test/core_matchers_test.dart

Issue 919983003: Get rid of minified tests. (Closed) Base URL: git@github.com:dart-lang/matcher@master
Patch Set: Created 5 years, 10 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 | « .status ('k') | test/iterable_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.core_matchers_test; 5 library matcher.core_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:unittest/unittest.dart' show test, group;
9 9
10 import 'test_utils.dart'; 10 import 'test_utils.dart';
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 shouldPass('cow', new isInstanceOf<String>('String')); 180 shouldPass('cow', new isInstanceOf<String>('String'));
181 }); 181 });
182 182
183 group('Predicate Matchers', () { 183 group('Predicate Matchers', () {
184 test('isInstanceOf', () { 184 test('isInstanceOf', () {
185 shouldFail(0, predicate((x) => x is String, "an instance of String"), 185 shouldFail(0, predicate((x) => x is String, "an instance of String"),
186 "Expected: an instance of String Actual: <0>"); 186 "Expected: an instance of String Actual: <0>");
187 shouldPass('cow', predicate((x) => x is String, "an instance of String")); 187 shouldPass('cow', predicate((x) => x is String, "an instance of String"));
188 }); 188 });
189 }); 189 });
190
191 test("Feature Matcher", () {
192 var w = new Widget();
193 w.price = 10;
194 shouldPass(w, new HasPrice(10));
195 shouldPass(w, new HasPrice(greaterThan(0)));
196 shouldFail(w, new HasPrice(greaterThan(10)),
197 "Expected: Widget with a price that is a value greater than <10> "
198 "Actual: <Instance of 'Widget'> "
199 "Which: has price with value <10> which is not "
200 "a value greater than <10>");
201 });
190 } 202 }
OLDNEW
« no previous file with comments | « .status ('k') | test/iterable_matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698