Skip to content

Commit

Permalink
fix be ut
Browse files Browse the repository at this point in the history
  • Loading branch information
xiedeyantu committed Apr 7, 2024
1 parent ccee881 commit dc975bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions be/test/vec/function/function_string_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,16 +1192,16 @@ TEST(function_string_test, function_strcmp_test) {
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String};

DataSet data_set = {{{Null(), Null()}, Null()},
{{std::string(""), std::string("")}, 0},
{{std::string("test"), std::string("test")}, 0},
{{std::string("test1"), std::string("test")}, 1},
{{std::string("test"), std::string("test1")}, -1},
{{std::string(""), std::string("")}, (int16_t)0},
{{std::string("test"), std::string("test")}, (int16_t)0},
{{std::string("test1"), std::string("test")}, (int16_t)1},
{{std::string("test"), std::string("test1")}, (int16_t)-1},
{{Null(), std::string("test")}, Null()},
{{std::string("test"), Null()}, Null()},
{{VARCHAR(""), VARCHAR("")}, 0},
{{VARCHAR("test"), VARCHAR("test")}, 0},
{{VARCHAR("test1"), VARCHAR("test")}, 1},
{{VARCHAR("test"), VARCHAR("test1")}, -1},
{{VARCHAR(""), VARCHAR("")}, (int16_t)0},
{{VARCHAR("test"), VARCHAR("test")}, (int16_t)0},
{{VARCHAR("test1"), VARCHAR("test")}, (int16_t)1},
{{VARCHAR("test"), VARCHAR("test1")}, (int16_t)-1},
{{Null(), VARCHAR("test")}, Null()},
{{VARCHAR("test"), Null()}, Null()}};
static_cast<void>(check_function<DataTypeInt16, true>(func_name, input_types, data_set));
Expand Down

0 comments on commit dc975bc

Please sign in to comment.