@@ -117,23 +117,23 @@ func TestRemoveShallowRemovesParents(t *testing.T) {
117117 },
118118 }
119119
120- removeItemsWithSchema (& test , remove , schema , typeRef , false )
120+ test = removeItemsWithSchema (test , remove , schema , typeRef , false )
121121
122122 expect , err := value .FromJSON ([]byte (`{"keep": "value", "keepMap": {"child": "value"}, "keepList": [{"child": "value"}], "removeMap": {"child":"value"}, "removeList": [{"child": "value"}]}` ))
123123 if err != nil {
124124 t .Fatal (err )
125125 }
126- if ! test .Equals (expect ) {
126+ if ! value .Equals (test , expect ) {
127127 t .Fatalf ("unexpected result after remove:\n got: %v\n exp: %v" , test .String (), expect .String ())
128128 }
129129
130- removeItemsWithSchema (& test , remove , schema , typeRef , true )
130+ test = removeItemsWithSchema (test , remove , schema , typeRef , true )
131131
132132 expect , err = value .FromJSON ([]byte (`{"keep": "value", "keepMap": {"child": "value"}, "keepList": [{"child": "value"}]}` ))
133133 if err != nil {
134134 t .Fatal (err )
135135 }
136- if ! test .Equals (expect ) {
137- t .Fatalf ("unexpected result after remove:\n got: %v\n exp: %v" , test . String ( ), expect . String ( ))
136+ if ! value .Equals (test , expect ) {
137+ t .Fatalf ("unexpected result after remove:\n got: %v\n exp: %v" , value . ToString ( test ), value . ToString ( expect ))
138138 }
139139}
0 commit comments