Merge pull request #62 from dickeyxxx/readme

Readme
pull/59/head
Tyler 2014-07-01 09:50:47 -06:00
commit 5484d2a8ac
1 changed files with 15 additions and 1 deletions

View File

@ -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
@ -61,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")