filter expr: Test that the order in Match doesn't matter.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-01-28 11:49:42 -08:00
parent 2f1a9b21b6
commit 5627b390df
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func TestMatch(t *testing.T) {
assert.False(t, e.Match("foo")) assert.False(t, e.Match("foo"))
assert.True(t, e.Match("bar")) assert.True(t, e.Match("bar"))
assert.False(t, e.Match("foo", "bar")) assert.False(t, e.Match("foo", "bar"))
assert.False(t, e.Match("bar", "foo"))
e = expr{operator: EQ, value: "f*o"} e = expr{operator: EQ, value: "f*o"}
assert.True(t, e.Match("foo")) assert.True(t, e.Match("foo"))