Skip to content

Commit a87d9bb

Browse files
committed
remove deps
1 parent ed3e614 commit a87d9bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

map_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package merge
22

33
import (
4-
"github.com/stretchr/testify/assert"
4+
"reflect"
55
"testing"
66
)
77

@@ -19,7 +19,7 @@ func TestMap_Merge(t *testing.T) {
1919
args args[string, testVal]
2020
}{
2121
{
22-
name: "merge maps dbie_example 1",
22+
name: "merge maps test",
2323
args: args[string, testVal]{
2424
left: map[string]testVal{"oneKey": {Val: "oneValue"}},
2525
right: map[string]testVal{"otherKey": {Val: "otherKey"}},
@@ -33,7 +33,9 @@ func TestMap_Merge(t *testing.T) {
3333
for _, tt := range tests {
3434
t.Run(tt.name, func(K *testing.T) {
3535
tt.args.left.Merge(tt.args.right)
36-
assert.Equal(K, tt.args.want, tt.args.left)
36+
if equal := reflect.DeepEqual(tt.args.want, tt.args.left); !equal {
37+
t.Fatal("Expected: ", tt.args.want, "Actual: ", tt.args.left)
38+
}
3739
})
3840
}
3941
}

0 commit comments

Comments
 (0)