checks 0.2.2
checks: ^0.2.2 copied to clipboard
A framework for checking values against expectations and building custom expectations.
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.