| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |