checks 0.3.1
checks: ^0.3.1 copied to clipboard
A framework for checking values against expectations and building custom expectations.
0.3.1 #
- Directly compare keys across actual and expected
Mapinstances when checking deep collection equality and all the keys can be directly compared for equality. This maintains the path into a nested collection for typical cases of checking for equality against a purely value collection. - Always wrap Condition descriptions in angle brackets.
- Add
containsMatchingInOrderandcontainsEqualInOrderto replace the combined functionality incontainsInOrder. - Replace
pairwiseComparesTowithpairwiseMatches. - Fix a bug where printing the result of a failed deep quality check would
fail with a
TypeErrorwhen comparing largeMapinstances - Increase SDK constraint to ^3.5.0.
- Clarify this package is experimental.
0.3.0 #
- Breaking Changes
- Remove the
Conditionclass and theit()utility. Replace calls to(it()..someExpectation())with((it) => it.someExpectation()).
- Remove the
- Add class modifiers to restrict extension of implementation classes.
0.2.2 #
- Return the first failure from
softCheckandsoftCheckAsyncas documented, instead of the last failure when there are multiple failures. - Add example
becauseusage and mention the "reason" name in the migration guide. - Add
ComparableCheckswith comparison expectations for subject types that implementComparable.
0.2.1 #
- Add a link to file issues with feedback in the README.
0.2.0 #
- Breaking Changes
checkThatrenamed tocheck.nestandnestAsynctakeIterable<String> Function()arguments forlabelinstead ofString.- Async expectation extensions
completes,throws,emits, andemitsErrorno longer return aFuture<Subject>. Instead they take an optionalConditionargument which can check expectations that would have been checked on the returned subject. nestAsyncno longer returns aSubject, callers must pass the followupConditionto the nullable argument.- Remove the
whichextension onFuture<Subject>. matchesrenamed tomatchesPatternand now accepts aPatternargument, instead of limiting toRegExp.
- Added an example.
- Include a stack trace in the failure description for unexpected errors from Futures or Streams.
0.1.0 #
- Initial release.