Skip to content

Commit

Permalink
check result sizes to make test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 21, 2024
1 parent 14ef631 commit 7714e40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpp/tests/join/quadtree_point_in_polygon_test_large.cu
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,13 @@ TYPED_TEST(PIPRefineTestLarge, TestLarge)
quadtree,
point_indices.begin(),
point_indices.end(),
points.begin(),
points_in.begin(),
multipolygons,
this->stream());

EXPECT_GT(actual_point_indices.size(), 0);
EXPECT_GT(actual_poly_indices.size(), 0);

thrust::stable_sort_by_key(rmm::exec_policy(this->stream()),
actual_point_indices.begin(),
actual_point_indices.end(),
Expand Down Expand Up @@ -208,6 +211,9 @@ TYPED_TEST(PIPRefineTestLarge, TestLarge)
auto d_expected_poly_indices = rmm::device_vector<std::uint32_t>(expected_poly_indices);
auto d_expected_point_indices = rmm::device_vector<std::uint32_t>(expected_point_indices);

EXPECT_GT(d_expected_poly_indices.size(), 0);
EXPECT_GT(d_expected_point_indices.size(), 0);

thrust::stable_sort_by_key(rmm::exec_policy(this->stream()),
d_expected_point_indices.begin(),
d_expected_point_indices.end(),
Expand Down

0 comments on commit 7714e40

Please sign in to comment.