Go test library that delivers simple test assertions with useful verbose output.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata
LICENSE
README.md
example_test.go
fake_test.go
go.mod
go.sum
want.go
want_test.go

README.md

go-want

Go test library that delivers simple test assertions with useful verbose output.

Usage

import "4d63.com/want"

func TestAbs(t *testing.T) {
  want.Eq(t, Abs(-1), 1)
  want.Eq(t, Abs(-1), 0)
}
=== RUN   TestWantEq
--- FAIL: TestWantEq (0.00s)
    eq_test.go:11: got 1
    eq_test.go:12: got 1, want 0