Skip to content

0.2.0

Compare
Choose a tag to compare
@pellared pellared released this 01 Oct 17:56
· 139 commits to main since this release
0f173e4

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 via FluentObject type:
    • Check
    • Should
    • ShouldNot
    • DeepEqual
    • NotDeepEqual
    • Zero
    • NonZero
  • Add Comparable function which provides following assertions,
    in addition to Obj, via FluentComparable 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).