Skip to content

Commit

Permalink
fix copy pasta test
Browse files Browse the repository at this point in the history
  • Loading branch information
bartleyg committed May 18, 2023
1 parent 7ff4e92 commit 1127c84
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 1127c84

Please sign in to comment.