Skip to content

Commit c175f1a

Browse files
committed
sql_parser: select parser tests refactoring (7)
1 parent 585b2ae commit c175f1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/parser/expression/function_expr.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ mod math_functions {
422422
select::test_utils::select_expr, BinaryOp, FunctionArg, FunctionArgType,
423423
};
424424

425-
const CORE_FUNCTIONS: [&str; 26] = [
426-
"acos", "acosh", "asin", "asinh", "atan", "atan2", "atanh", "ceil", "ceiling", "cos",
427-
"cosh", "degrees", "exp", "floor", "ln", "log", "log10", "log2", "pi", "radians", "sin",
428-
"sinh", "sqrt", "tan", "tanh", "trunc",
425+
const CORE_FUNCTIONS: [&str; 23] = [
426+
"acos", "acosh", "asin", "asinh", "atan", "ceil", "ceiling", "cos", "cosh", "degrees",
427+
"exp", "floor", "ln", "log10", "log2", "pi", "radians", "sin", "sinh", "sqrt", "tan",
428+
"tanh", "trunc",
429429
];
430430

431431
#[test]
@@ -453,7 +453,7 @@ mod math_functions {
453453

454454
#[test]
455455
fn functions_test2() {
456-
for function_name in ["log", "mod", "pow", "power"] {
456+
for function_name in ["atan2", "log", "mod", "pow", "power"] {
457457
run_sunny_day_test(
458458
&format!("SELECT {}(1+2, 3*4);", function_name),
459459
select_expr(function(

0 commit comments

Comments
 (0)