diff --git a/cpp/tests/io/csv_test.cpp b/cpp/tests/io/csv_test.cpp index 43d9bd7b514..53e0ab14fd3 100644 --- a/cpp/tests/io/csv_test.cpp +++ b/cpp/tests/io/csv_test.cpp @@ -415,7 +415,7 @@ TYPED_TEST(CsvFixedPointWriterTest, SingleColumnNegativeScale) result_strings.reserve(reference_strings.size()); std::ifstream read_result_file(filepath); - assert(read_result_file.is_open()); + ASSERT_TRUE(read_result_file.is_open()); std::copy(std::istream_iterator(read_result_file), std::istream_iterator(), @@ -461,7 +461,7 @@ TYPED_TEST(CsvFixedPointWriterTest, SingleColumnPositiveScale) result_strings.reserve(reference_strings.size()); std::ifstream read_result_file(filepath); - assert(read_result_file.is_open()); + ASSERT_TRUE(read_result_file.is_open()); std::copy(std::istream_iterator(read_result_file), std::istream_iterator(), @@ -2175,9 +2175,9 @@ TEST_F(CsvReaderTest, DtypesMap) auto result = cudf_io::read_csv(in_opts); const auto result_table = result.tbl->view(); - assert(result_table->num_columns() == 2); - assert(result_table.column(0).type() == data_type{type_id::INT32}); - assert(result_table.column(1).type() == data_type{type_id::INT16}); + ASSERT_EQ(result_table.num_columns(), 2); + ASSERT_EQ(result_table.column(0).type(), data_type{type_id::INT32}); + ASSERT_EQ(result_table.column(1).type(), data_type{type_id::INT16}); expect_column_data_equal(std::vector{12, 34, 56}, result_table.column(0)); expect_column_data_equal(std::vector{9, 8, 7}, result_table.column(1)); }