We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9233b9c commit 83973f3Copy full SHA for 83973f3
flag_test.go
@@ -3030,3 +3030,10 @@ func TestExtFlag(t *testing.T) {
3030
assert.Equal(t, "10", extF.GetDefaultText())
3031
assert.Nil(t, extF.GetEnvVars())
3032
}
3033
+
3034
+func TestSliceValuesNil(t *testing.T) {
3035
+ assert.Equal(t, []float64(nil), NewFloatSlice().Value())
3036
+ assert.Equal(t, []int64(nil), NewIntSlice().Value())
3037
+ assert.Equal(t, []uint64(nil), NewUintSlice().Value())
3038
+ assert.Equal(t, []string(nil), NewStringSlice().Value())
3039
+}
0 commit comments