zclllyybb commented on code in PR #48476:
URL: https://github.com/apache/doris/pull/48476#discussion_r1976475757


##########
be/test/vec/function/function_math_test.cpp:
##########
@@ -54,6 +68,20 @@ TEST(MathFunctionTest, asin_test) {
     static_cast<void>(check_function<DataTypeFloat64, true>(func_name, 
input_types, data_set));
 }
 
+TEST(MathFunctionTest, asinh_test) {
+    std::string func_name = "asinh"; // asinh(x) = ln(x + sqrt(x^2 + 1)), x ∈ 
(-∞, +∞)
+
+    InputTypeSet input_types = {TypeIndex::Float64};
+
+    DataSet data_set = {{{0.0}, 0.0},
+                        {{1.0}, 0.8813735870195430},
+                        {{-1.0}, -0.8813735870195430},
+                        {{2.0}, 1.4436354751788103},
+                        {{-2.0}, -1.4436354751788103}};
+
+    static_cast<void>(check_function<DataTypeFloat64, true>(func_name, 
input_types, data_set));

Review Comment:
   use check_function_all_combinations. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to