Skip to content

Commit

Permalink
Check all possible flag values
Browse files Browse the repository at this point in the history
  • Loading branch information
Naim committed Dec 12, 2023
1 parent 0573351 commit e866560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/tests/structure/mg_select_random_vertices_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Tests_MGSelectRandomVertices

std::sort(h_given_set.begin(), h_given_set.end());
if (sort_vertices) {
std::is_sorted(h_sampled_vertices.begin(), h_sampled_vertices.end());
assert(std::is_sorted(h_sampled_vertices.begin(), h_sampled_vertices.end()));
} else {
std::sort(h_sampled_vertices.begin(), h_sampled_vertices.end());
}
Expand Down Expand Up @@ -186,7 +186,7 @@ class Tests_MGSelectRandomVertices
ASSERT_EQ(nr_duplicates, 0);
}
if (sort_vertices) {
std::is_sorted(h_sampled_vertices.begin(), h_sampled_vertices.end());
assert(std::is_sorted(h_sampled_vertices.begin(), h_sampled_vertices.end()));
}

auto vertex_first = mg_graph_view.local_vertex_partition_range_first();
Expand Down

0 comments on commit e866560

Please sign in to comment.