Skip to content

Go testing library for descriptive assert matching inspired by Hamcrest-matchers

License

Notifications You must be signed in to change notification settings

g4s8/go-matchers

Repository files navigation

go-matchers

Go testing library for descriptive assert matching

Inspired by http://hamcrest.org/

Example

import m "github.com/g4s8/go-matchers"

func Test_Matchers(t *testing.T) {
	m.Assert(t).That("2 + 2 = 4", 2+2, m.EqualTo(4))
        m.Assert(t).That([]{1,2,3}, m.Not(m.Nil()))
}

About

Go testing library for descriptive assert matching inspired by Hamcrest-matchers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages