Skip to content

Commit

Permalink
Merge pull request #58 from bartleyg/patch-1
Browse files Browse the repository at this point in the history
Fix copy pasta error in TestNilMapsAreEmpty
  • Loading branch information
daniel-nichter authored May 21, 2023
2 parents 7ff4e92 + 1127c84 commit 95fb3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,9 @@ func TestNilSlicesAreEmpty(t *testing.T) {
}

func TestNilMapsAreEmpty(t *testing.T) {
defaultNilMapsAreEmpty := deep.NilSlicesAreEmpty
defaultNilMapsAreEmpty := deep.NilMapsAreEmpty
deep.NilMapsAreEmpty = true
defer func() { deep.NilSlicesAreEmpty = defaultNilMapsAreEmpty }()
defer func() { deep.NilMapsAreEmpty = defaultNilMapsAreEmpty }()

a := map[int]int{1: 1}
b := map[int]int{}
Expand Down

0 comments on commit 95fb3b1

Please sign in to comment.