File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
package merge
2
2
3
3
import (
4
- "github.com/stretchr/testify/assert "
4
+ "reflect "
5
5
"testing"
6
6
)
7
7
@@ -19,7 +19,7 @@ func TestMap_Merge(t *testing.T) {
19
19
args args [string , testVal ]
20
20
}{
21
21
{
22
- name : "merge maps dbie_example 1 " ,
22
+ name : "merge maps test " ,
23
23
args : args [string , testVal ]{
24
24
left : map [string ]testVal {"oneKey" : {Val : "oneValue" }},
25
25
right : map [string ]testVal {"otherKey" : {Val : "otherKey" }},
@@ -33,7 +33,9 @@ func TestMap_Merge(t *testing.T) {
33
33
for _ , tt := range tests {
34
34
t .Run (tt .name , func (K * testing.T ) {
35
35
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
+ }
37
39
})
38
40
}
39
41
}
You can’t perform that action at this time.
0 commit comments