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

Side by Side Diff: pkg/unittest/numeric_matchers.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 /** 5 /**
6 * Returns a matcher which matches if the match argument is greater 6 * Returns a matcher which matches if the match argument is greater
7 * than the given [value]. 7 * than the given [value].
8 */ 8 */
9
10 part of unittest;
11
9 Matcher greaterThan(value) => 12 Matcher greaterThan(value) =>
10 new _OrderingComparison(value, false, false, true, 'a value greater than'); 13 new _OrderingComparison(value, false, false, true, 'a value greater than');
11 14
12 /** 15 /**
13 * Returns a matcher which matches if the match argument is greater 16 * Returns a matcher which matches if the match argument is greater
14 * than or equal to the given [value]. 17 * than or equal to the given [value].
15 */ 18 */
16 Matcher greaterThanOrEqualTo(value) => 19 Matcher greaterThanOrEqualTo(value) =>
17 new _OrderingComparison(value, true, false, true, 20 new _OrderingComparison(value, true, false, true,
18 'a value greater than or equal to'); 21 'a value greater than or equal to');
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return mismatchDescription. 223 return mismatchDescription.
221 addDescriptionOf(item). 224 addDescriptionOf(item).
222 add(' not numeric'); 225 add(' not numeric');
223 } else { 226 } else {
224 return super.describeMismatch(item, mismatchDescription, 227 return super.describeMismatch(item, mismatchDescription,
225 matchState, verbose); 228 matchState, verbose);
226 } 229 }
227 } 230 }
228 } 231 }
229 232
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698