Closed o-lim closed 9 years ago
:+1: Ready to go with a rebase.
I'll version and cut a release of luassert and busted after this.
Just rebased and submitted a new PR #106 to fix the error level reporting for internal assertions/errors. Could you incorporate #106 into the release as well?
Yup.
I also just updated the README file in PR #107
This allows more flexible argument matching for
called_with
andreturned_with
assertions. Argument matching no longer needs to be exact, and can now match against almost any criteria (i.e. types, values, truthy, falsy, patterns, etc.). Custom matchers can be registered viaassert:register("matcher", "matcher_name", matcher_func)
. Furthermore, matchers can be combined with the use of composite matchers.To add your own matcher
Composite matchers have the form: