Merge pull request #8881 from colega/single-literal-regexp-value-querier-testcase
Single literal regexp value test case for querier
This commit is contained in:
commit
6eaff341fb
|
@ -1513,6 +1513,13 @@ func TestFindSetMatches(t *testing.T) {
|
||||||
pattern string
|
pattern string
|
||||||
exp []string
|
exp []string
|
||||||
}{
|
}{
|
||||||
|
// Single value, coming from a `bar=~"foo"` selector.
|
||||||
|
{
|
||||||
|
pattern: "^(?:foo)$",
|
||||||
|
exp: []string{
|
||||||
|
"foo",
|
||||||
|
},
|
||||||
|
},
|
||||||
// Simple sets.
|
// Simple sets.
|
||||||
{
|
{
|
||||||
pattern: "^(?:foo|bar|baz)$",
|
pattern: "^(?:foo|bar|baz)$",
|
||||||
|
|
Loading…
Reference in New Issue