diff options
Diffstat (limited to 'src/testing/quick/quick_test.go')
| -rw-r--r-- | src/testing/quick/quick_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/testing/quick/quick_test.go b/src/testing/quick/quick_test.go index fe443592f8..018ece2a52 100644 --- a/src/testing/quick/quick_test.go +++ b/src/testing/quick/quick_test.go @@ -290,20 +290,3 @@ func TestMutuallyRecursive(t *testing.T) { f := func(a A) bool { return true } Check(f, nil) } - -// Some serialization formats (e.g. encoding/pem) cannot distinguish -// between a nil and an empty map or slice, so avoid generating the -// zero value for these. -func TestNonZeroSliceAndMap(t *testing.T) { - type Q struct { - M map[int]int - S []int - } - f := func(q Q) bool { - return q.M != nil && q.S != nil - } - err := Check(f, nil) - if err != nil { - t.Fatal(err) - } -} |
