builtin-base: removed useless function unset(). See UNSET operator
This commit is contained in:
@@ -92,23 +92,6 @@ func doTest(t *testing.T, ctx kern.ExprContext, section string, input *inputType
|
||||
}
|
||||
|
||||
eq := kern.Equal(gotResult, input.wantResult)
|
||||
// if input.wantResult != nil && gotResult != nil {
|
||||
// if ls1, ok := input.wantResult.(*kern.ListType); ok {
|
||||
// if ls2, ok := gotResult.(*kern.ListType); ok {
|
||||
// eq = ls1.Equals(*ls2)
|
||||
// eqDone = true
|
||||
// }
|
||||
// } else if dict1, ok := input.wantResult.(*kern.DictType); ok {
|
||||
// if dict2, ok := gotResult.(*kern.DictType); ok {
|
||||
// eq = dict1.Equals(*dict2)
|
||||
// eqDone = true
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// if !eqDone {
|
||||
// eq = reflect.DeepEqual(gotResult, input.wantResult)
|
||||
// }
|
||||
|
||||
if !eq /*gotResult != input.wantResult*/ {
|
||||
t.Errorf(">>>%s/%d: `%s` -> result = %v [%s], want = %v [%s]", section, count, input.source, gotResult, kern.TypeName(gotResult), input.wantResult, kern.TypeName(input.wantResult))
|
||||
|
||||
Reference in New Issue
Block a user