mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
nil in DeepEqual
R=r DELTA=13 (5 added, 6 deleted, 2 changed) OCL=34337 CL=34343
This commit is contained in:
parent
107d404378
commit
33be0c6465
2 changed files with 7 additions and 8 deletions
|
|
@ -378,6 +378,8 @@ var deepEqualTests = []DeepEqualTest {
|
|||
DeepEqualTest{ map[int]string{ 1:"one", 2:"txo" }, map[int]string{ 2:"two", 1:"one" }, false },
|
||||
DeepEqualTest{ map[int]string{ 1:"one", }, map[int]string{ 2:"two", 1:"one" }, false },
|
||||
DeepEqualTest{ map[int]string{ 2:"two", 1:"one" }, map[int]string{ 1:"one", }, false },
|
||||
DeepEqualTest{ nil, 1, false },
|
||||
DeepEqualTest{ 1, nil, false },
|
||||
|
||||
// Mismatched types
|
||||
DeepEqualTest{ 1, 1.0, false },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue