mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Add operator tests
Signed-off-by: Levi Harrison <git@leviharrison.dev>
This commit is contained in:
parent
be6ce7bcc2
commit
587cb95093
14
promql/testdata/operators.test
vendored
14
promql/testdata/operators.test
vendored
|
@ -467,3 +467,17 @@ eval instant at 5m test_total < bool test_smaller
|
|||
{instance="localhost"} 0
|
||||
|
||||
eval instant at 5m test_total < test_smaller
|
||||
|
||||
clear
|
||||
|
||||
# Testing atan2.
|
||||
load 5m
|
||||
trigy{} 10
|
||||
trigx{} 20
|
||||
trigNaN{} NaN
|
||||
|
||||
eval instant at 5m trigy atan2 trigx
|
||||
trigy{} 0.4636476090008061
|
||||
|
||||
eval instant at 5m trigy atan2 trigNaN
|
||||
trigy{} NaN
|
||||
|
|
Loading…
Reference in a new issue