commit | 755ee44fa2fa018d2e53202126efc2ea1716252c | [log] [tgz] |
---|---|---|
author | Andreas Kirsch <blackhc@google.com> | Mon Jan 12 16:00:27 2015 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Mon Jan 12 16:00:27 2015 -0800 |
tree | 3edc9db989798f6047fad175aba9b8fb85650cb0 | |
parent | 1cad08d3ee7b14e00fee83718236b92e5cf9c9e9 [diff] |
Rewrite isEmpty and isNotEmpty to just access the isEmpty/isNotEmpty. Adapt the unit tests and add a small regression test for https://code.google.com/p/dart/issues/detail?id=21562 to check that `expect(null, isNot(isEmpty))` fails. BUG=21792, 21562
Support for specifying test expectations, such as for unit tests.
The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.
For more information, see Unit Testing with Dart.