Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <nghiatruong.vn@gmail.com>
  • Loading branch information
ttnghia committed May 29, 2022
1 parent 10812bb commit 847311b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cpp/tests/lists/drop_list_duplicates_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,16 @@ TEST_F(DropListDuplicatesTest, StringTestsNonNull)
{
// Trivial cases - empty input.
{
auto const lists = StrListsCol{{}};
auto const expected = StrListsCol{{}};
auto const lists = StrListsCol{};
auto const expected = StrListsCol{};
auto const results = cudf::lists::drop_list_duplicates(cudf::lists_column_view{lists});
CUDF_TEST_EXPECT_COLUMNS_EQUAL(results->view(), expected, verbosity);
}

// Empty input lists.
{
auto const lists = StrListsCol{{}, {}, {}};
auto const expected = StrListsCol{{}, {}, {}};
auto const results = cudf::lists::drop_list_duplicates(cudf::lists_column_view{lists});
CUDF_TEST_EXPECT_COLUMNS_EQUAL(results->view(), expected, verbosity);
}
Expand Down

0 comments on commit 847311b

Please sign in to comment.