2023-07-05 10:05:54 +00:00
|
|
|
# assert
|
|
|
|
|
2023-07-05 11:14:37 +00:00
|
|
|
A minimal & stateless assert package for writing tests.
|
|
|
|
|
2023-07-18 09:12:27 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
```shell
|
|
|
|
go get git.akyoto.dev/go/assert
|
|
|
|
```
|
|
|
|
|
2023-07-05 11:14:37 +00:00
|
|
|
## API
|
|
|
|
|
|
|
|
```go
|
|
|
|
assert.Nil(t, nil)
|
|
|
|
assert.True(t, true)
|
|
|
|
assert.Equal(t, "Hello", "Hello")
|
|
|
|
assert.DeepEqual(t, "Hello", "Hello")
|
|
|
|
assert.Contains(t, "Hello", "ello")
|
|
|
|
```
|