Skip to content

Commit

Permalink
Update cpp/tests/io/json/json_test.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Nghia Truong <[email protected]>
  • Loading branch information
shrshi and ttnghia authored Oct 21, 2024
1 parent 911e065 commit 293521f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cpp/tests/io/json/json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2989,14 +2989,9 @@ TEST_F(JsonReaderTest, LastRecordInvalid)
.build();
auto const result = cudf::io::read_json(opts);

EXPECT_EQ(result.tbl->num_columns(), 1);
EXPECT_EQ(result.tbl->get_column(0).type().id(), cudf::type_id::STRING);
EXPECT_EQ(result.metadata.schema_info[0].name, "key");
auto const result_view = result.tbl->view().column(0);

EXPECT_EQ(result.tbl->num_rows(), 2);
cudf::test::strings_column_wrapper expected{{"1", ""}, cudf::test::iterators::nulls_at({1})};
CUDF_TEST_EXPECT_COLUMNS_EQUAL(result_view, expected);
CUDF_TEST_EXPECT_TABLES_EQUAL(result.tbl->view(), cudf::table_view{{expected}});
}

CUDF_TEST_PROGRAM_MAIN()

0 comments on commit 293521f

Please sign in to comment.