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

Side by Side Diff: lib/src/numeric_matchers.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/map_matchers.dart ('k') | lib/src/operator_matchers.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.numeric_matchers;
6
7 import 'interfaces.dart'; 5 import 'interfaces.dart';
8 6
9 /// Returns a matcher which matches if the match argument is greater 7 /// Returns a matcher which matches if the match argument is greater
10 /// than the given [value]. 8 /// than the given [value].
11 Matcher greaterThan(value) => 9 Matcher greaterThan(value) =>
12 new _OrderingComparison(value, false, false, true, 'a value greater than'); 10 new _OrderingComparison(value, false, false, true, 'a value greater than');
13 11
14 /// Returns a matcher which matches if the match argument is greater 12 /// Returns a matcher which matches if the match argument is greater
15 /// than or equal to the given [value]. 13 /// than or equal to the given [value].
16 Matcher greaterThanOrEqualTo(value) => new _OrderingComparison( 14 Matcher greaterThanOrEqualTo(value) => new _OrderingComparison(
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 Description describeMismatch( 191 Description describeMismatch(
194 item, Description mismatchDescription, Map matchState, bool verbose) { 192 item, Description mismatchDescription, Map matchState, bool verbose) {
195 if (item is! num) { 193 if (item is! num) {
196 return mismatchDescription.addDescriptionOf(item).add(' not numeric'); 194 return mismatchDescription.addDescriptionOf(item).add(' not numeric');
197 } else { 195 } else {
198 return super.describeMismatch( 196 return super.describeMismatch(
199 item, mismatchDescription, matchState, verbose); 197 item, mismatchDescription, matchState, verbose);
200 } 198 }
201 } 199 }
202 } 200 }
OLDNEW
« no previous file with comments | « lib/src/map_matchers.dart ('k') | lib/src/operator_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698