From 0078ce7fac6a205341fee659b7f5adefa7f0b7aa Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 12 Feb 2020 20:53:29 +0000 Subject: wipeable_string: split - treat CR, LF and Tabs as separators --- tests/unit_tests/wipeable_string.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/unit_tests/wipeable_string.cpp') 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) -- cgit v1.2.3