mirror of
https://github.com/monero-project/monero.git
synced 2025-05-04 23:15:00 -04:00
Fixed string_ref usage bug in epee::from_hex::vector
This commit is contained in:
parent
7c74e1919e
commit
f9441c5759
2 changed files with 6 additions and 3 deletions
|
@ -841,6 +841,9 @@ TEST(HexLocale, 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_locale::to_vector(hex));
|
||||
|
||||
hex.append("f0");
|
||||
EXPECT_EQ(source, epee::from_hex_locale::to_vector(boost::string_ref{hex.data(), hex.size() - 2}));
|
||||
}
|
||||
|
||||
TEST(ToHex, Array)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue