]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: add DeepEqual slice of slice inequality test
authorShawn Smith <shawn.p.smith@gmail.com>
Mon, 30 Dec 2013 19:39:47 +0000 (11:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Dec 2013 19:39:47 +0000 (11:39 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/46510043

src/pkg/reflect/all_test.go

index eb84a862d94748c45e05d175b4698c5f77a41b37..23e4e235f262d12643176030773883c90e9fffa3 100644 (file)
@@ -678,6 +678,7 @@ var deepEqualTests = []DeepEqualTest{
        {1, nil, false},
        {fn1, fn3, false},
        {fn3, fn3, false},
+       {[][]int{[]int{1}}, [][]int{[]int{2}}, false},
 
        // Nil vs empty: not the same.
        {[]int{}, []int(nil), false},