working premine; empty first version of PROTOCOL_TX in block
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2014-2023, The Monero Project
|
||||
// Copyright (c) 2014-2022, The Monero Project
|
||||
//
|
||||
// All rights reserved.
|
||||
//
|
||||
@@ -1241,22 +1241,6 @@ TEST(ToHex, ArrayFromPod)
|
||||
);
|
||||
}
|
||||
|
||||
TEST(ToHex, Buffer)
|
||||
{
|
||||
static constexpr const std::uint8_t source[] = {0xFF, 0x00, 0xAB, 0x01};
|
||||
const std::vector<char> expected{'f', 'f', '0', '0', 'a', 'b', '0', '1'};
|
||||
|
||||
std::vector<char> buffer;
|
||||
buffer.resize(expected.size());
|
||||
EXPECT_TRUE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
|
||||
EXPECT_EQ(expected, buffer);
|
||||
|
||||
buffer.pop_back();
|
||||
EXPECT_FALSE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
|
||||
buffer.pop_back();
|
||||
EXPECT_FALSE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
|
||||
}
|
||||
|
||||
TEST(ToHex, Ostream)
|
||||
{
|
||||
std::stringstream out;
|
||||
|
||||
Reference in New Issue
Block a user