matcher 0.12.2
matcher: ^0.12.2 copied to clipboard
Support for specifying test expectations
0.12.2 #
-
Fixed
unorderedMatchesin cases where the matchers may match more than one element and order of the elements doesn't line up with the order of the matchers. -
Add containsAll matcher for Iterables. This Matcher checks that all values/matchers in an expected iterable are satisfied by an element in the value without allowing the same value to satisfy multiple matchers.
0.12.1+4 #
- Fixed SDK constraint to allow edge builds.
0.12.1+3 #
-
Make
predicateandpairwiseComparegeneric methods to allow typed functions to be passed to them as arguments. -
Make internal implementations take better advantage of type promotion to avoid dynamic call overhead.
0.12.1+2 #
-
Fixed small documentation issues.
-
Fixed small issue in
StringEqualsMatcher. -
Update to support future Dart language changes.
0.12.1+1 #
- Produce a better error message when a
CustomMatcher's feature throws.
0.12.1 #
- Add containsAllInOrder matcher for Iterables
0.12.0+2 #
- Fix all strong-mode warnings.
0.12.0+1 #
- Fix test files to use
testinstead ofunittestpkg.
0.12.0 #
-
Moved a number of members to the
unittestpackage.TestFailure,ErrorFormatter,expect,fail, and 'wrapAsync'.completes,completion,throws, andthrowsAMatchers.- The
Throwsclass. - All of the
throws...ErrorMatchers.
-
Removed
FailureHandler,DefaultFailureHandler,configureExpectFailureHandler, andgetOrCreateExpectFailureHandler. Now thatexpectis in theunittestpackage, these are no longer needed. -
Removed the
nameparameter forisInstanceOf. This was previously deprecated, and is no longer necessary since all language implementations now support converting the type parameter to a string directly.
0.11.4+6 #
- Fix a bug introduced in 0.11.4+5 in which operator matchers broke when taking lists of matchers.
0.11.4+5 #
- Fix all strong-mode warnings.
0.11.4+4 #
- Deprecate the name parameter to
isInstanceOf. All language implementations now support converting the type parameter to a string directly.
0.11.4+3 #
- Fix the examples for
equalsIgnoringWhitespace.
0.11.4+2 #
- Improve the formatting of strings that contain unprintable ASCII characters.
0.11.4+1 #
- Correctly match and print
Strings containing characters that must be represented as escape sequences.
0.11.4 #
- Remove the type checks in the
isEmptyandisNotEmptymatchers and simply access theisEmptyrespectivelyisNotEmptyfields. This allows them to work with custom collections. See Issue 21792 and Issue 21562
0.11.3+1 #
- Fix the
printsmatcher test on dart2js.
0.11.3 #
- Add a
printsmatcher that matches output a callback emits viaprint.
0.11.2 #
- Add an
isNotEmptymatcher.
0.11.1+1 #
-
Refactored libraries and tests.
-
Fixed spelling mistake.
0.11.1 #
- Added
isNaNandisNotNaNmatchers.
0.11.0 #
- Removed deprecated matchers.
0.10.1+1 #
- Get the tests passing when run on dart2js in minified mode.
0.10.1 #
- Compare sets order-independently when using
equals().
0.10.0+3 #
- Removed
@deprecatedannotation on matchers due to Issue 19173
0.10.0+2 #
- Added types to a number of constants.
0.10.0+1 #
-
Matchers related to bad language use have been removed. These represent code structure that should rarely or never be validated in tests.
isAbstractClassInstantiationErrorthrowsAbstractClassInstantiationErrorisFallThroughErrorthrowsFallThroughError
-
Added types to a number of method arguments.
-
The structure of the library and test code has been updated.