mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-05 00:40:24 +08:00
15 lines
267 B
Go
15 lines
267 B
Go
|
|
package anyx
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/stretchr/testify/assert"
|
||
|
|
"testing"
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestDeepZero(t *testing.T) {
|
||
|
|
assert.Zero(t, DeepZero[int]())
|
||
|
|
assert.Zero(t, *DeepZero[*int]())
|
||
|
|
assert.Zero(t, DeepZero[time.Time]())
|
||
|
|
assert.Zero(t, *DeepZero[*time.Time]())
|
||
|
|
}
|