mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 13:13:19 +00:00
added more complete second example
This commit is contained in:
parent
17a4bf61f0
commit
9eedabd0af
@ -68,6 +68,13 @@ func TestSomething(t *testing.T) {
|
|||||||
if you assert many times, use the below:
|
if you assert many times, use the below:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
package yours
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
)
|
||||||
|
|
||||||
func TestSomething(t *testing.T) {
|
func TestSomething(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user