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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (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 9
10 part of unittest; 10 part of matcher;
11 11
12 Matcher greaterThan(value) => 12 Matcher greaterThan(value) =>
13 new _OrderingComparison(value, false, false, true, 'a value greater than'); 13 new _OrderingComparison(value, false, false, true, 'a value greater than');
14 14
15 /** 15 /**
16 * Returns a matcher which matches if the match argument is greater 16 * Returns a matcher which matches if the match argument is greater
17 * than or equal to the given [value]. 17 * than or equal to the given [value].
18 */ 18 */
19 Matcher greaterThanOrEqualTo(value) => 19 Matcher greaterThanOrEqualTo(value) =>
20 new _OrderingComparison(value, true, false, true, 20 new _OrderingComparison(value, true, false, true,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 return mismatchDescription. 223 return mismatchDescription.
224 addDescriptionOf(item). 224 addDescriptionOf(item).
225 add(' not numeric'); 225 add(' not numeric');
226 } else { 226 } else {
227 return super.describeMismatch(item, mismatchDescription, 227 return super.describeMismatch(item, mismatchDescription,
228 matchState, verbose); 228 matchState, verbose);
229 } 229 }
230 } 230 }
231 } 231 }
232 232
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698