| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 * The matcher library provides a 3rd generation assertion mechanism, drawing | 5 * Support for specifying test expectations, |
| 6 * inspiration from [Hamcrest](http://code.google.com/p/hamcrest/). | 6 * such as for unit tests. |
| 7 * | 7 * |
| 8 * ## Installing ## | 8 * This library is included in the |
| 9 * | 9 * [unittest package on pub.dartlang.org] |
| 10 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` | 10 * (http://pub.dartlang.org/packages/unittest). |
| 11 * file. | 11 * Import this library into your Dart code with: |
| 12 * | |
| 13 * dependencies: | |
| 14 * unittest: any | |
| 15 * | |
| 16 * Then run `pub install`. | |
| 17 * | |
| 18 * Import this into your Dart code with: | |
| 19 * | 12 * |
| 20 * import 'package:unittest/matcher.dart'; | 13 * import 'package:unittest/matcher.dart'; |
| 21 * | 14 * |
| 22 * For more information, see the [unittest package on pub.dartlang.org]. | 15 * The matcher library provides a third-generation assertion mechanism, drawing |
| 23 * (http://pub.dartlang.org/packages/unittest). | 16 * inspiration from [Hamcrest](http://code.google.com/p/hamcrest/). |
| 24 * | 17 * For more information, see |
| 25 * [pub]: http://pub.dartlang.org | 18 * [Unit Testing with Dart] |
| 26 * [pkg]: http://pub.dartlang.org/packages/matcher | 19 * (http://www.dartlang.org/articles/dart-unit-tests/). |
| 27 */ | 20 */ |
| 28 library matcher; | 21 library matcher; |
| 29 | 22 |
| 30 import 'dart:async'; | 23 import 'dart:async'; |
| 31 import 'package:meta/meta.dart'; | 24 import 'package:meta/meta.dart'; |
| 32 | 25 |
| 33 import 'src/pretty_print.dart'; | 26 import 'src/pretty_print.dart'; |
| 34 import 'src/utils.dart'; | 27 import 'src/utils.dart'; |
| 35 | 28 |
| 36 part 'src/iterable_matchers.dart'; | 29 part 'src/iterable_matchers.dart'; |
| 37 part 'src/core_matchers.dart'; | 30 part 'src/core_matchers.dart'; |
| 38 part 'src/description.dart'; | 31 part 'src/description.dart'; |
| 39 part 'src/expect.dart'; | 32 part 'src/expect.dart'; |
| 40 part 'src/future_matchers.dart'; | 33 part 'src/future_matchers.dart'; |
| 41 part 'src/interfaces.dart'; | 34 part 'src/interfaces.dart'; |
| 42 part 'src/map_matchers.dart'; | 35 part 'src/map_matchers.dart'; |
| 43 part 'src/numeric_matchers.dart'; | 36 part 'src/numeric_matchers.dart'; |
| 44 part 'src/operator_matchers.dart'; | 37 part 'src/operator_matchers.dart'; |
| 45 part 'src/string_matchers.dart'; | 38 part 'src/string_matchers.dart'; |
| OLD | NEW |