aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/wipeable_string.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-02-12 20:53:29 +0000
committerxiphon <xiphon@protonmail.com>2020-02-12 21:16:07 +0000
commit0078ce7fac6a205341fee659b7f5adefa7f0b7aa (patch)
tree0c35cf990bc16642ed1f57b7ddd5d7ff88396656 /tests/unit_tests/wipeable_string.cpp
parentMerge pull request #6145 (diff)
downloadmonero-0078ce7fac6a205341fee659b7f5adefa7f0b7aa.tar.xz
wipeable_string: split - treat CR, LF and Tabs as separators
Diffstat (limited to '')
-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)