add a test for groupby filter with RangeLTLT

This commit is contained in:
Travis Turner 2019-01-10 11:00:10 -06:00
parent f101cb17b5
commit 0b1fb73b14
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -629,6 +629,26 @@ func TestPQLDeepEquality(t *testing.T) {
{Name: "Rows"},
},
}},
{
name: "GroupByFilterRangeLTLT",
call: "GroupBy(Rows(), filter=Row(4 < a < 9))",
exp: &Call{
Name: "GroupBy",
Args: map[string]interface{}{
"filter": &Call{
Name: "Row",
Args: map[string]interface{}{
"a": &Condition{
Op: BETWEEN,
Value: []interface{}{int64(5), int64(9)},
},
},
},
},
Children: []*Call{
{Name: "Rows"},
},
}},
}
for i, test := range tests {