Skip to content

Commit

Permalink
Fix unrelated CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Nov 14, 2024
1 parent d552fa5 commit be910af
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cpp/src/arrow/buffer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,8 @@ TEST(TestBuffer, CopySliceEmpty) {
}

TEST(TestBuffer, ToHexString) {
const uint8_t data_array[] = "\a0hex string\xa9";
std::basic_string<uint8_t> data_str = data_array;

auto data = reinterpret_cast<const uint8_t*>(data_str.c_str());

Buffer buf(data, data_str.size());

const std::string data_str = "\a0hex string\xa9";
Buffer buf(data_str);
ASSERT_EQ(buf.ToHexString(), std::string("073068657820737472696E67A9"));
}

Expand Down

0 comments on commit be910af

Please sign in to comment.