validators: actor joined by more tests

This commit is contained in:
Yousong Zhou
2019-09-04 03:40:22 +00:00
parent 396fc7be7c
commit b2d1bb6d5a
@@ -79,6 +79,28 @@ func TestJoinedByActor(t *testing.T) {
ValueWant: valsWant,
},
},
{
sep: ",",
ignoreEmpty: true,
C: C{
Name: "good in (nothing)",
In: `{"s": ""}`,
Out: `{"s": ""}`,
ValueWant: []interface{}{},
},
},
{
sep: ",",
C: C{
Name: "good in (0.0.0.0/32)",
In: `{"s": ""}`,
Out: `{"s": ""}`,
ValueWant: []interface{}{func() *netutils.IPV4Prefix {
p, _ := netutils.NewIPV4Prefix("0.0.0.0/32")
return &p
}()},
},
},
{
sep: ",",
trimSpace: true,