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

Unified Diff: test/order_matchers_test.dart

Issue 1956483003: pkg/matcher: split out order matchers from numeric matchers lib (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/numeric_matchers_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/order_matchers_test.dart
diff --git a/test/numeric_matchers_test.dart b/test/order_matchers_test.dart
similarity index 55%
copy from test/numeric_matchers_test.dart
copy to test/order_matchers_test.dart
index 922f303d81dc7026186f60560a3fccea58e5778e..f138f9ca0ebfc01b4b225d781ff770643c39335d 100644
--- a/test/numeric_matchers_test.dart
+++ b/test/order_matchers_test.dart
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:matcher/matcher.dart';
-import 'package:test/test.dart' show test, group;
+import 'package:test/test.dart' show test;
import 'test_utils.dart';
@@ -19,8 +19,8 @@ void main() {
shouldPass(10, greaterThanOrEqualTo(10));
shouldFail(9, greaterThanOrEqualTo(10),
"Expected: a value greater than or equal to <10> "
- "Actual: <9> "
- "Which: is not a value greater than or equal to <10>");
+ "Actual: <9> "
+ "Which: is not a value greater than or equal to <10>");
nweiz 2016/05/05 20:59:04 Keep the indentation as-is.
kevmoo 2016/05/05 21:01:05 Acknowledged.
});
test('lessThan', () {
@@ -34,8 +34,8 @@ void main() {
shouldPass(10, lessThanOrEqualTo(10));
shouldFail(11, lessThanOrEqualTo(10),
"Expected: a value less than or equal to <10> "
- "Actual: <11> "
- "Which: is not a value less than or equal to <10>");
+ "Actual: <11> "
+ "Which: is not a value less than or equal to <10>");
});
test('isZero', () {
@@ -84,56 +84,4 @@ void main() {
"Actual: <-1> "
"Which: is not a non-negative value");
});
-
- test('closeTo', () {
- shouldPass(0, closeTo(0, 1));
- shouldPass(-1, closeTo(0, 1));
- shouldPass(1, closeTo(0, 1));
- shouldFail(1.001, closeTo(0, 1),
- "Expected: a numeric value within <1> of <0> "
- "Actual: <1.001> "
- "Which: differs by <1.001>");
- shouldFail(-1.001, closeTo(0, 1),
- "Expected: a numeric value within <1> of <0> "
- "Actual: <-1.001> "
- "Which: differs by <1.001>");
- });
-
- test('inInclusiveRange', () {
- shouldFail(-1, inInclusiveRange(0, 2),
- "Expected: be in range from 0 (inclusive) to 2 (inclusive) "
- "Actual: <-1>");
- shouldPass(0, inInclusiveRange(0, 2));
- shouldPass(1, inInclusiveRange(0, 2));
- shouldPass(2, inInclusiveRange(0, 2));
- shouldFail(3, inInclusiveRange(0, 2),
- "Expected: be in range from 0 (inclusive) to 2 (inclusive) "
- "Actual: <3>");
- });
-
- test('inExclusiveRange', () {
- shouldFail(0, inExclusiveRange(0, 2),
- "Expected: be in range from 0 (exclusive) to 2 (exclusive) "
- "Actual: <0>");
- shouldPass(1, inExclusiveRange(0, 2));
- shouldFail(2, inExclusiveRange(0, 2),
- "Expected: be in range from 0 (exclusive) to 2 (exclusive) "
- "Actual: <2>");
- });
-
- test('inOpenClosedRange', () {
- shouldFail(0, inOpenClosedRange(0, 2),
- "Expected: be in range from 0 (exclusive) to 2 (inclusive) "
- "Actual: <0>");
- shouldPass(1, inOpenClosedRange(0, 2));
- shouldPass(2, inOpenClosedRange(0, 2));
- });
-
- test('inClosedOpenRange', () {
- shouldPass(0, inClosedOpenRange(0, 2));
- shouldPass(1, inClosedOpenRange(0, 2));
- shouldFail(2, inClosedOpenRange(0, 2),
- "Expected: be in range from 0 (inclusive) to 2 (exclusive) "
- "Actual: <2>");
- });
}
« no previous file with comments | « test/numeric_matchers_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698