Merge pull request #1818 from travisturner/groupby-filter-test

add a test for groupby filter with RangeLTLT
This commit is contained in:
Travis Turner 2019-01-11 16:06:39 -06:00 committed by GitHub
commit b0d0105e79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {