From 58aae6cc44b1574dc6371dcabde17a38c7ae266b Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Tue, 16 Oct 2012 21:21:20 +0100 Subject: [PATCH] added 'assert' description --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d58c3d3..f107665 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,23 @@ Testify - Thou shalt write tests Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend. - * Mocking * Easy assertions - * HTTP mocking + * Mocking + * HTTP response trapping Read the API documentation: http://go.pkgdoc.org/github.com/stretchrcom/tetify + +Assert package +-------------- + +The `assert` package provides some helpful methods that allow you to write better test code in Go. + +Some examples: + + func TestSomething(t *testing.T) { + + assert.Equal(t, 123, 123, "they should be equal") + assert.NotNil(t, object) + assert.Nil(t, object) + + } \ No newline at end of file