From 17a4bf61f00e76c11b1861c6e94424092f97a162 Mon Sep 17 00:00:00 2001 From: dickeyxxx Date: Tue, 1 Jul 2014 08:48:35 -0700 Subject: [PATCH 1/2] added more complete first example --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b489296..496b99f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,13 @@ The `assert` package provides some helpful methods that allow you to write bette See it in action: ```go +package yours + +import ( + "testing" + "github.com/stretchr/testify/assert" +) + func TestSomething(t *testing.T) { // assert equality From 9eedabd0afd28b6b42f502013c66ea81ae2a09b2 Mon Sep 17 00:00:00 2001 From: dickeyxxx Date: Tue, 1 Jul 2014 08:49:02 -0700 Subject: [PATCH 2/2] added more complete second example --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 496b99f..57eda34 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,16 @@ func TestSomething(t *testing.T) { if you assert many times, use the below: ```go +package yours + +import ( + "testing" + "github.com/stretchr/testify/assert" +) + func TestSomething(t *testing.T) { assert := assert.New(t) - + // assert equality assert.Equal(123, 123, "they should be equal")