added test case for no values

This commit is contained in:
Natasha Sarkar
2020-11-06 13:10:18 -08:00
parent 73d91dda6e
commit 886f73aa0f
2 changed files with 22 additions and 1 deletions

View File

@@ -393,7 +393,7 @@ func (f FieldMatcher) Filter(rn *RNode) (*RNode, error) {
return rn, nil
}
return nil, nil
case f.Value.YNode() != nil && rn.value.Value == f.Value.YNode().Value:
case GetValue(rn) == GetValue(f.Value):
return rn, nil
default:
return nil, nil