mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-14 20:31:32 +01:00
Make fuzzy compare opt-in via fuzzy_compare boolean in each unittest file. Signed-off-by: Graham Reed <greed@hypervolt.co.uk>
25 lines
597 B
YAML
25 lines
597 B
YAML
# Minimal test case to see that fuzzy compare can be turned off,
|
|
# and slight floating point differences fail matching.
|
|
|
|
evaluation_interval: 1m
|
|
fuzzy_compare: false
|
|
|
|
tests:
|
|
- name: correct fuzzy match
|
|
input_series:
|
|
- series: test_low
|
|
values: 2.9999999999999996
|
|
- series: test_high
|
|
values: 3.0000000000000004
|
|
promql_expr_test:
|
|
- expr: test_low
|
|
eval_time: 0
|
|
exp_samples:
|
|
- labels: test_low
|
|
value: 3
|
|
- expr: test_high
|
|
eval_time: 0
|
|
exp_samples:
|
|
- labels: test_high
|
|
value: 3
|