mirror of https://github.com/docker/docs.git
filter expr: Test that the order in Match doesn't matter.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
2f1a9b21b6
commit
5627b390df
|
@ -46,6 +46,7 @@ func TestMatch(t *testing.T) {
|
|||
assert.False(t, e.Match("foo"))
|
||||
assert.True(t, e.Match("bar"))
|
||||
assert.False(t, e.Match("foo", "bar"))
|
||||
assert.False(t, e.Match("bar", "foo"))
|
||||
|
||||
e = expr{operator: EQ, value: "f*o"}
|
||||
assert.True(t, e.Match("foo"))
|
||||
|
|
Loading…
Reference in New Issue