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:
Julien Pivotto 2021-06-01 11:59:53 +02:00 committed by GitHub
commit 6eaff341fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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)$",