mirror of
https://github.com/monero-project/monero.git
synced 2026-01-04 08:47:20 -08:00
Fixed string_ref usage bug in epee::from_hex::vector
This commit is contained in:
@@ -840,6 +840,9 @@ TEST(FromHex, String)
|
||||
// decoding it this way also, ignoring spaces and colons between the numbers
|
||||
hex.assign("00:ff 0f:f0");
|
||||
EXPECT_EQ(source, epee::from_hex::vector(hex));
|
||||
|
||||
hex.append("f0");
|
||||
EXPECT_EQ(source, epee::from_hex::vector(boost::string_ref{hex.data(), hex.size() - 2}));
|
||||
}
|
||||
|
||||
TEST(ToHex, Array)
|
||||
|
||||
Reference in New Issue
Block a user