aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-08-19 19:44:03 +0200
committerMacroFake <falke.marco@gmail.com>2022-08-19 19:44:16 +0200
commitfaf8da3c8da275c104330ef2743c5a062bea2f4b (patch)
treec22ac519315bcab10abcc0f6a722ba4a9074f6f0 /src/test
parent9eaef10801051385c074fca13afe1297e8494ea5 (diff)
Remove Join() helper only used in tests
Also remove redundant return type that can be deduced by the compiler.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/util_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp
index 70e2f89e0b..a16280f8c6 100644
--- a/src/test/util_tests.cpp
+++ b/src/test/util_tests.cpp
@@ -238,9 +238,9 @@ BOOST_AUTO_TEST_CASE(span_write_bytes)
BOOST_AUTO_TEST_CASE(util_Join)
{
// Normal version
- BOOST_CHECK_EQUAL(Join({}, ", "), "");
- BOOST_CHECK_EQUAL(Join({"foo"}, ", "), "foo");
- BOOST_CHECK_EQUAL(Join({"foo", "bar"}, ", "), "foo, bar");
+ BOOST_CHECK_EQUAL(Join(std::vector<std::string>{}, ", "), "");
+ BOOST_CHECK_EQUAL(Join(std::vector<std::string>{"foo"}, ", "), "foo");
+ BOOST_CHECK_EQUAL(Join(std::vector<std::string>{"foo", "bar"}, ", "), "foo, bar");
// Version with unary operator
const auto op_upper = [](const std::string& s) { return ToUpper(s); };