From fd693844946d6f9c0a97fde1e84341d4ac134dfc Mon Sep 17 00:00:00 2001 From: Shruti Shivakumar Date: Mon, 4 Nov 2024 16:53:37 +0000 Subject: [PATCH] removing unnecessary checks --- cpp/tests/io/json/json_writer.cpp | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/cpp/tests/io/json/json_writer.cpp b/cpp/tests/io/json/json_writer.cpp index e911f7b7af7..c3dddb143d6 100644 --- a/cpp/tests/io/json/json_writer.cpp +++ b/cpp/tests/io/json/json_writer.cpp @@ -220,41 +220,6 @@ TEST_P(JsonCompressedWriterTest, PlainTable) auto result = cudf::io::read_json(json_parser_options); - /* - cudf::test::print(tbl_view.column(0)); - cudf::test::print(tbl_view.column(1)); - cudf::test::print(tbl_view.column(2)); - cudf::test::print(tbl_view.column(3)); - cudf::test::print(tbl_view.column(4)); - std::cout << "=======================\n"; - cudf::test::print(result.tbl->get_column(0)); - cudf::test::print(result.tbl->get_column(1)); - cudf::test::print(result.tbl->get_column(2)); - cudf::test::print(result.tbl->get_column(3)); - cudf::test::print(result.tbl->get_column(4)); - */ - - EXPECT_EQ(result.tbl->num_columns(), 5); - EXPECT_EQ(result.tbl->num_rows(), 3); - - EXPECT_EQ(result.tbl->get_column(0).type().id(), cudf::type_id::STRING); - EXPECT_EQ(result.tbl->get_column(1).type().id(), cudf::type_id::STRING); - EXPECT_EQ(result.tbl->get_column(2).type().id(), cudf::type_id::INT64); - EXPECT_EQ(result.tbl->get_column(3).type().id(), cudf::type_id::FLOAT64); - EXPECT_EQ(result.tbl->get_column(4).type().id(), cudf::type_id::INT64); - - EXPECT_EQ(tbl_view.column(0).type().id(), cudf::type_id::STRING); - EXPECT_EQ(tbl_view.column(1).type().id(), cudf::type_id::STRING); - EXPECT_EQ(tbl_view.column(2).type().id(), cudf::type_id::INT64); - EXPECT_EQ(tbl_view.column(3).type().id(), cudf::type_id::FLOAT64); - EXPECT_EQ(tbl_view.column(4).type().id(), cudf::type_id::INT64); - - EXPECT_EQ(result.metadata.schema_info[0].name, "col1"); - EXPECT_EQ(result.metadata.schema_info[1].name, "col2"); - EXPECT_EQ(result.metadata.schema_info[2].name, "col3"); - EXPECT_EQ(result.metadata.schema_info[3].name, "col4"); - EXPECT_EQ(result.metadata.schema_info[4].name, "col5"); - CUDF_TEST_EXPECT_TABLES_EQUAL(tbl_view, result.tbl->view()); }