Browse Source

Add operator tests

Signed-off-by: Levi Harrison <git@leviharrison.dev>
pull/9248/head
Levi Harrison 3 years ago
parent
commit
587cb95093
  1. 14
      promql/testdata/operators.test

14
promql/testdata/operators.test vendored

@ -467,3 +467,17 @@ eval instant at 5m test_total < bool test_smaller
{instance="localhost"} 0 {instance="localhost"} 0
eval instant at 5m test_total < test_smaller 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…
Cancel
Save