aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-21 08:38:21 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-21 08:38:21 -0500
commit06c81b6527be94c66a31a0ec23c56c5a2d602b69 (patch)
tree203f8daecbea5c41a63b55470baeeaeefb189922 /tests/unit_tests
parentMerge pull request #6332 (diff)
parentFixed string_ref usage bug in epee::from_hex::vector (diff)
downloadmonero-06c81b6527be94c66a31a0ec23c56c5a2d602b69.tar.xz
Merge pull request #6359
f9441c5 Fixed string_ref usage bug in epee::from_hex::vector (vtnerd)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/epee_utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit_tests/epee_utils.cpp b/tests/unit_tests/epee_utils.cpp
index 42bbb26bb..4f42140b3 100644
--- a/tests/unit_tests/epee_utils.cpp
+++ b/tests/unit_tests/epee_utils.cpp
@@ -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)