From 1127c8410de31c10a9ee65a3130cb9999222f888 Mon Sep 17 00:00:00 2001 From: Bartley Gillan Date: Thu, 18 May 2023 17:01:19 -0500 Subject: [PATCH] fix copy pasta test --- deep_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deep_test.go b/deep_test.go index bcb7d5a..0cc96cf 100644 --- a/deep_test.go +++ b/deep_test.go @@ -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{}