|
|
|
|
@ -196,24 +196,28 @@ func TestStringer(t *testing.T) { |
|
|
|
|
}{ |
|
|
|
|
{ |
|
|
|
|
in: `1 > 1 > 1`, |
|
|
|
|
out: `0.000000`, |
|
|
|
|
out: `0`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
in: `1.6`, |
|
|
|
|
out: `1.6`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
in: `1 > 1 > bool 1`, |
|
|
|
|
out: `0.000000`, |
|
|
|
|
out: `0`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
in: `1 > bool 1 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0.000000 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
in: `1 > bool 1 > bool count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0.000000 > bool count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0 > bool count_over_time({foo="bar"}[1m])`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
in: `0.000000 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0.000000 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
in: `0 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
out: `0 > count_over_time({foo="bar"}[1m])`, |
|
|
|
|
}, |
|
|
|
|
} { |
|
|
|
|
t.Run(tc.in, func(t *testing.T) { |
|
|
|
|
|