[Feature] Support function roundBankers (#15154)

This commit is contained in:
HaveAnOrangeCat
2022-12-22 22:53:09 +08:00
committed by GitHub
parent 388df291af
commit df5969ab58
15 changed files with 352 additions and 10 deletions

View File

@ -369,6 +369,18 @@ TEST(MathFunctionTest, round_test) {
}
}
TEST(MathFunctionTest, round_bankers_test) {
std::string func_name = "round_bankers";
{
InputTypeSet input_types = {TypeIndex::Float64};
DataSet data_set = {{{0.4}, 0.0}, {{-3.5}, -4.0}, {{4.5}, 4.0}, {{Null()}, Null()}};
check_function<DataTypeFloat64, true>(func_name, input_types, data_set);
}
}
TEST(MathFunctionTest, least_test) {
std::string func_name = "least";