From 8a54c728aeccb01d1e6b6ee188901b3973986d55 Mon Sep 17 00:00:00 2001 From: Elias Stehle <3958403+elstehle@users.noreply.github.com> Date: Thu, 21 Jul 2022 09:52:57 -0700 Subject: [PATCH] uses new vector comparison for logical stack test --- cpp/tests/io/fst/logical_stack_test.cu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/tests/io/fst/logical_stack_test.cu b/cpp/tests/io/fst/logical_stack_test.cu index d76ff16f85d..dda737f005d 100644 --- a/cpp/tests/io/fst/logical_stack_test.cu +++ b/cpp/tests/io/fst/logical_stack_test.cu @@ -244,9 +244,7 @@ TEST_F(LogicalStackTest, GroundTruth) // Verify results ASSERT_EQ(string_size, top_of_stack_cpu.size()); ASSERT_EQ(top_of_stack_gpu.size(), top_of_stack_cpu.size()); - for (size_t i = 0; i < string_size && i < top_of_stack_cpu.size(); i++) { - ASSERT_EQ(top_of_stack_gpu.host_ptr()[i], top_of_stack_cpu[i]) << "Mismatch at index #" << i; - } + CUDF_TEST_EXPECT_VECTOR_EQUAL(top_of_stack_gpu.host_ptr(), top_of_stack_cpu, string_size); } CUDF_TEST_PROGRAM_MAIN()