Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <[email protected]>
  • Loading branch information
ttnghia committed Nov 16, 2024
1 parent bfd461b commit cf9d6bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/cpp/tests/cast_float_to_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct FloatToStringTests : public cudf::test::BaseFixture {};

TEST_F(FloatToStringTests, FromFloats32)
{
cudf::test::strings_column_wrapper input{R"({"c2": [19]})"};
cudf::test::strings_column_wrapper input{R"({"c2": [1, 2]})"};

{
/*
Expand All @@ -44,11 +44,11 @@ list, struct, int64, string
scales:
0, 0, 0, 0,
*/
std::vector<std::string> col_names{"c2", "element", "c3", "c4"};
std::vector<int> num_children{1, 2, 0, 0};
std::vector<int> types{24, 28, 4, 23};
std::vector<int> scales{0, 0, 0, 0};
std::vector<int> precisions{-1, -1, -1, -1};
std::vector<std::string> col_names{"c2", "element"};
std::vector<int> num_children{1, 0};
std::vector<int> types{24, 3};
std::vector<int> scales{0, 0};
std::vector<int> precisions{-1, -1};

auto out = spark_rapids_jni::from_json_to_structs(cudf::strings_column_view{input},
col_names,
Expand Down

0 comments on commit cf9d6bf

Please sign in to comment.