| 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 library matcher.iterable_matchers_test; | |
| 6 | |
| 7 import 'package:matcher/matcher.dart'; | 5 import 'package:matcher/matcher.dart'; |
| 8 import 'package:test/test.dart' show test, group; | 6 import 'package:test/test.dart' show test, group; |
| 9 | 7 |
| 10 import 'test_utils.dart'; | 8 import 'test_utils.dart'; |
| 11 | 9 |
| 12 void main() { | 10 void main() { |
| 13 test('isEmpty', () { | 11 test('isEmpty', () { |
| 14 shouldPass([], isEmpty); | 12 shouldPass([], isEmpty); |
| 15 shouldFail([1], isEmpty, "Expected: empty Actual: [1]"); | 13 shouldFail([1], isEmpty, "Expected: empty Actual: [1]"); |
| 16 }); | 14 }); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 "Actual: SimpleIterable:[]"); | 176 "Actual: SimpleIterable:[]"); |
| 179 }); | 177 }); |
| 180 | 178 |
| 181 test('contains', () { | 179 test('contains', () { |
| 182 var d = new SimpleIterable(3); | 180 var d = new SimpleIterable(3); |
| 183 shouldPass(d, contains(2)); | 181 shouldPass(d, contains(2)); |
| 184 shouldFail(d, contains(5), "Expected: contains <5> " | 182 shouldFail(d, contains(5), "Expected: contains <5> " |
| 185 "Actual: SimpleIterable:[3, 2, 1]"); | 183 "Actual: SimpleIterable:[3, 2, 1]"); |
| 186 }); | 184 }); |
| 187 } | 185 } |
| OLD | NEW |