Update pkg/labels/regexp_test.go

Co-authored-by: Peter Štibraný <peter.stibrany@grafana.com>
This commit is contained in:
Cyril Tovena 2021-10-06 16:44:26 +02:00 committed by GitHub
parent 969497c5a3
commit f7f80a3abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ func TestFindSetMatches(t *testing.T) {
{"^foo$", []string{"foo"}},
// Simple sets alternates.
{"foo|bar|zz", []string{"foo", "bar", "zz"}},
// Simple sets alternate and concat (bar|baz is parsed as ba(r|z)).
// Simple sets alternate and concat (bar|baz is parsed as "ba[rz]").
{"foo|bar|baz", []string{"foo", "bar", "baz"}},
// Simple sets alternate and concat and capture
{"foo|bar|baz|(zz)", []string{"foo", "bar", "baz", "zz"}},