0.2.0
This release is a complete rewrite. It is not compatible with the previous release.
The new API is type-safe and easier to extend.
The next release is supposed to provide assertions for constraints.Ordered
, string
, error
, []T
, map[K]V
, func()
.
Added
- Add
FailureMessage
which encapsulates the failure message and methods for error reporting. - Add
Obj
function which provides following assertions viaFluentObject
type:Check
Should
ShouldNot
DeepEqual
NotDeepEqual
Zero
NonZero
- Add
Comparable
function which provides following assertions,
in addition toObj
, viaFluentComparable
type:Equal
NotEqual
Changed
- Require Go 1.18.
Fixed
- Fix error reporting line (use
t.Helper()
when available).
Removed
- Remove all previous functions and types (API rewrite).