mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
added a byte > 128
This commit is contained in:
1 parent
ebdf126cf7
commit
fea82b9e85
1 file changed
+3
-2
@@ -137,13 +137,14 @@ TEST(TestBuffer, Copy) {
|
||||
}
|
||||
|
||||
TEST(TestBuffer, ToHexString) {
|
||||
std::string data_str = "\a0 hex string";
|
||||
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());
|
||||
|
||||
ASSERT_EQ(buf.ToHexString(), std::string("07302068657820737472696E67"));
|
||||
ASSERT_EQ(buf.ToHexString(), std::string("073068657820737472696E67A9"));
|
||||
}
|
||||
|
||||
TEST(TestBuffer, SliceBuffer) {
|
||||
|
||||
Reference in new issue
Block a user