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

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: nits 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 59%
copy from test/numeric_matchers_test.dart
copy to test/order_matchers_test.dart
index 922f303d81dc7026186f60560a3fccea58e5778e..47ce3c526ab61c17f959b69c2dbd543ebea96e2d 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';
@@ -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