diff --git a/promql/parser/printer_test.go b/promql/parser/printer_test.go index d7b89262a..476570466 100644 --- a/promql/parser/printer_test.go +++ b/promql/parser/printer_test.go @@ -89,6 +89,15 @@ func TestExprString(t *testing.T) { { in: `{__name__="a"}`, }, + { + in: `a{b!="c"}[1m]`, + }, + { + in: `a{b=~"c"}[1m]`, + }, + { + in: `a{b!~"c"}[1m]`, + }, } for _, test := range inputs {