From faf8da3c8da275c104330ef2743c5a062bea2f4b Mon Sep 17 00:00:00 2001 From: MacroFake Date: Fri, 19 Aug 2022 19:44:03 +0200 Subject: Remove Join() helper only used in tests Also remove redundant return type that can be deduced by the compiler. --- src/test/util_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/util_tests.cpp') 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{}, ", "), ""); + BOOST_CHECK_EQUAL(Join(std::vector{"foo"}, ", "), "foo"); + BOOST_CHECK_EQUAL(Join(std::vector{"foo", "bar"}, ", "), "foo, bar"); // Version with unary operator const auto op_upper = [](const std::string& s) { return ToUpper(s); }; -- cgit v1.2.3