summaryrefslogtreecommitdiff
path: root/tests/utils.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-08-16 16:05:15 +0200
committerlouiz’ <louiz@louiz.org>2020-08-16 16:05:15 +0200
commitb98434b5d04d1ada9b24475e17ee8947d96ad1e3 (patch)
treee0f4fe2959c8bc9e406b2157acf8f02df7e9f8bd /tests/utils.cpp
parentdf2fe0bc4bf6240e47abf26ff88ffdfc9373f481 (diff)
downloadbiboumi-b98434b5d04d1ada9b24475e17ee8947d96ad1e3.tar.gz
biboumi-b98434b5d04d1ada9b24475e17ee8947d96ad1e3.tar.bz2
biboumi-b98434b5d04d1ada9b24475e17ee8947d96ad1e3.tar.xz
biboumi-b98434b5d04d1ada9b24475e17ee8947d96ad1e3.zip
In CAP messages, handle the last arg as a list of capabilities
Instead of just one. This fixes the issue of the "trailing whitespace" since we now split it on ' ' Fix #3442
Diffstat (limited to 'tests/utils.cpp')
-rw-r--r--tests/utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils.cpp b/tests/utils.cpp
index 6de19f0..6151733 100644
--- a/tests/utils.cpp
+++ b/tests/utils.cpp
@@ -28,6 +28,9 @@ TEST_CASE("String split")
CHECK(splitted.size() == 2);
CHECK(splitted[0] == "");
CHECK(splitted[1] == "a");
+ splitted = utils::split("multi-prefix ", ' ');
+ CHECK(splitted[0] == "multi-prefix");
+ CHECK(splitted.size() == 1);
}
TEST_CASE("tolower")