aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-04 12:42:50 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-04 12:42:50 -0500
commit292e2d8f28c0925d62cba81a1f4512724ae73d54 (patch)
treed08cda99279c0fa5ec9fc991aa1ac478372a7980 /tests/unit_tests
parentMerge pull request #6334 (diff)
parentwipeable_string: split - treat CR, LF and Tabs as separators (diff)
downloadmonero-292e2d8f28c0925d62cba81a1f4512724ae73d54.tar.xz
Merge pull request #6335
0078ce7 wipeable_string: split - treat CR, LF and Tabs as separators (xiphon)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/wipeable_string.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/wipeable_string.cpp b/tests/unit_tests/wipeable_string.cpp
index 44e050c5c..9911bd6f4 100644
--- a/tests/unit_tests/wipeable_string.cpp
+++ b/tests/unit_tests/wipeable_string.cpp
@@ -182,6 +182,7 @@ TEST(wipeable_string, split)
ASSERT_TRUE(check_split(" foo bar baz ", {"foo", "bar", "baz"}));
ASSERT_TRUE(check_split(" foo bar baz", {"foo", "bar", "baz"}));
ASSERT_TRUE(check_split("foo bar baz ", {"foo", "bar", "baz"}));
+ ASSERT_TRUE(check_split("\tfoo\n bar\r\nbaz", {"foo", "bar", "baz"}));
}
TEST(wipeable_string, parse_hexstr)