Index: packages/matcher/test/operator_matchers_test.dart |
diff --git a/packages/matcher/test/operator_matchers_test.dart b/packages/matcher/test/operator_matchers_test.dart |
index 003eb34f43e307f8524e9aa7c174721d10f65e7a..20cd631eaeda53bd76d6e9ff5596ed195b4a267a 100644 |
--- a/packages/matcher/test/operator_matchers_test.dart |
+++ b/packages/matcher/test/operator_matchers_test.dart |
@@ -2,11 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library matcher.operator_matchers_test; |
- |
import 'package:matcher/matcher.dart'; |
-import 'package:test/test.dart' |
- show test, group, expect, throwsArgumentError; |
+import 'package:test/test.dart' show test, expect, throwsArgumentError; |
import 'test_utils.dart'; |
@@ -26,23 +23,31 @@ void main() { |
test('allOf', () { |
// with a list |
shouldPass(1, allOf([lessThan(10), greaterThan(0)])); |
- shouldFail(-1, allOf([lessThan(10), greaterThan(0)]), |
+ shouldFail( |
+ -1, |
+ allOf([lessThan(10), greaterThan(0)]), |
"Expected: (a value less than <10> and a value greater than <0>) " |
"Actual: <-1> " |
"Which: is not a value greater than <0>"); |
// with individual items |
shouldPass(1, allOf(lessThan(10), greaterThan(0))); |
- shouldFail(-1, allOf(lessThan(10), greaterThan(0)), |
+ shouldFail( |
+ -1, |
+ allOf(lessThan(10), greaterThan(0)), |
"Expected: (a value less than <10> and a value greater than <0>) " |
"Actual: <-1> " |
"Which: is not a value greater than <0>"); |
// with maximum items |
- shouldPass(1, allOf(lessThan(10), lessThan(9), lessThan(8), |
- lessThan(7), lessThan(6), lessThan(5), lessThan(4))); |
- shouldFail(4, allOf(lessThan(10), lessThan(9), lessThan(8), lessThan(7), |
- lessThan(6), lessThan(5), lessThan(4)), |
+ shouldPass( |
+ 1, |
+ allOf(lessThan(10), lessThan(9), lessThan(8), lessThan(7), lessThan(6), |
+ lessThan(5), lessThan(4))); |
+ shouldFail( |
+ 4, |
+ allOf(lessThan(10), lessThan(9), lessThan(8), lessThan(7), lessThan(6), |
+ lessThan(5), lessThan(4)), |
"Expected: (a value less than <10> and a value less than <9> and a " |
"value less than <8> and a value less than <7> and a value less than " |
"<6> and a value less than <5> and a value less than <4>) " |