Skip to content

Commit

Permalink
Update contains_tests.cpp to use public cudf::slice (#16253)
Browse files Browse the repository at this point in the history
Changes the `cpp/tests/lists/contains_test.cpp` to use `cudf::slice` instead of `cudf::detail::slice()`

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Robert Maynard (https://github.com/robertmaynard)
  - Bradley Dice (https://github.com/bdice)
  - Muhammad Haseeb (https://github.com/mhaseeb123)

URL: #16253
  • Loading branch information
davidwendt authored Jul 12, 2024
1 parent 1737e70 commit 1cbd9eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cpp/tests/lists/contains_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ TYPED_TEST(TypedContainsTest, SlicedLists)

{
// First Slice.
auto sliced_column_1 =
cudf::detail::slice(search_space, {1, 8}, cudf::get_default_stream()).front();
auto search_key_one = create_scalar_search_key<T>(1);
auto sliced_column_1 = cudf::slice(search_space, {1, 8}, cudf::get_default_stream()).front();
auto search_key_one = create_scalar_search_key<T>(1);
{
// CONTAINS
auto result = cudf::lists::contains(sliced_column_1, *search_key_one);
Expand Down Expand Up @@ -257,9 +256,8 @@ TYPED_TEST(TypedContainsTest, SlicedLists)

{
// Second Slice.
auto sliced_column_2 =
cudf::detail::slice(search_space, {3, 10}, cudf::get_default_stream()).front();
auto search_key_one = create_scalar_search_key<T>(1);
auto sliced_column_2 = cudf::slice(search_space, {3, 10}, cudf::get_default_stream()).front();
auto search_key_one = create_scalar_search_key<T>(1);
{
// CONTAINS
auto result = cudf::lists::contains(sliced_column_2, *search_key_one);
Expand Down

0 comments on commit 1cbd9eb

Please sign in to comment.