Start using operator/operands internally in Filter class.

By having Filter.canonicalize_tuple() call filter_term(),
we make it so that Filter objects get operator/operand
fields in their terms when we initialize this.

This mostly caused test breakage for tests that were doing
assert.deepEqual; now we just check to make sure that the
field we need are there.

(imported from commit 63b2516dc72edeb11e76a1fa4442570b9c605baa)
This commit is contained in:
Steve Howell
2014-01-29 18:05:36 -05:00
parent 12626ead66
commit b18307b667
3 changed files with 24 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ Filter.canonicalize_tuple = function (tuple) {
}
// We may want to consider allowing mixed-case operators at some point
return [operator, operand];
return filter_term(operator, operand);
};