Add operator tests
@@ -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
