1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:40:22 -07:00

reflect: add DeepEqual slice of slice inequality test

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/46510043
This commit is contained in:
Shawn Smith 2013-12-30 11:39:47 -08:00 committed by Brad Fitzpatrick
parent 2f5f193923
commit 96ee10fb71

View 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},