mirror of
https://github.com/samber/lo.git
synced 2025-09-26 20:11:13 +08:00
oops
This commit is contained in:
@@ -27,7 +27,7 @@ func TestIsNil(t *testing.T) {
|
||||
|
||||
var ifaceWithNilValue any = (*string)(nil) //nolint:staticcheck
|
||||
is.True(IsNil(ifaceWithNilValue))
|
||||
is.NotNil(ifaceWithNilValue) //nolint:staticcheck
|
||||
is.False(ifaceWithNilValue == nil) //nolint:staticcheck,testifylint
|
||||
}
|
||||
|
||||
func TestIsNotNil(t *testing.T) {
|
||||
@@ -51,7 +51,7 @@ func TestIsNotNil(t *testing.T) {
|
||||
|
||||
var ifaceWithNilValue any = (*string)(nil) //nolint:staticcheck
|
||||
is.False(IsNotNil(ifaceWithNilValue))
|
||||
is.NotNil(ifaceWithNilValue) //nolint:staticcheck
|
||||
is.True(ifaceWithNilValue != nil) //nolint:staticcheck,testifylint
|
||||
}
|
||||
|
||||
func TestToPtr(t *testing.T) {
|
||||
@@ -75,11 +75,11 @@ func TestNil(t *testing.T) {
|
||||
|
||||
is.Equal(expNilFloat64, nilFloat64)
|
||||
is.Nil(nilFloat64)
|
||||
is.NotNil(nilFloat64)
|
||||
is.NotEqual(nil, nilFloat64) //nolint:testifylint
|
||||
|
||||
is.Equal(expNilString, nilString)
|
||||
is.Nil(nilString)
|
||||
is.NotNil(nilString)
|
||||
is.NotEqual(nil, nilString) //nolint:testifylint
|
||||
|
||||
is.NotEqual(nilString, nilFloat64)
|
||||
}
|
||||
|
Reference in New Issue
Block a user