mirror of https://github.com/stretchr/testify.git
added more complete first example
parent
81cfe446ab
commit
17a4bf61f0
|
@ -32,6 +32,13 @@ The `assert` package provides some helpful methods that allow you to write bette
|
||||||
See it in action:
|
See it in action:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
package yours
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
)
|
||||||
|
|
||||||
func TestSomething(t *testing.T) {
|
func TestSomething(t *testing.T) {
|
||||||
|
|
||||||
// assert equality
|
// assert equality
|
||||||
|
|
Loading…
Reference in New Issue