From 5ea941628b8afd7f8c771bd75e7d769d7ab43951 Mon Sep 17 00:00:00 2001 From: ado Date: Thu, 7 Jan 2021 23:07:08 +0100 Subject: [PATCH 1/2] try fix pipeline --- test/test_converter.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/test_converter.cpp b/test/test_converter.cpp index 189e292..fa7dabb 100644 --- a/test/test_converter.cpp +++ b/test/test_converter.cpp @@ -1,19 +1,17 @@ -#include -#include #include +#include +#include TEST_CASE("testing split") { ss::converter c; for (const auto& [s, expected, delim] : - // clang-format off - {std::tuple{"a,b,c,d", std::vector{"a", "b", "c", "d"}, ","}, - {"", {}, " "}, - {"a,b,c", {"a", "b", "c"}, ""}, - {" x x x x | x ", {" x x x x ", " x "}, "|"}, - {"a::b::c::d", {"a", "b", "c", "d"}, "::"}, - {"x\t-\ty", {"x", "y"}, "\t-\t"}, - {"x", {"x"}, ","}} // clang-format on - ) { + {std::make_tuple("a,b,c,d", std::vector{"a", "b", "c", "d"}, ","), + {"", {}, " "}, + {"a,b,c", {"a", "b", "c"}, ""}, + {" x x x x | x ", {" x x x x ", " x "}, "|"}, + {"a::b::c::d", {"a", "b", "c", "d"}, "::"}, + {"x\t-\ty", {"x", "y"}, "\t-\t"}, + {"x", {"x"}, ","}}) { auto split = c.split(s, delim); CHECK(split.size() == expected.size()); for (size_t i = 0; i < split.size(); ++i) { From 1a7bfbff46010d0305ceb59193fd0e743b42a20e Mon Sep 17 00:00:00 2001 From: ado Date: Thu, 7 Jan 2021 23:13:24 +0100 Subject: [PATCH 2/2] add ci to testing branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaed628..ff3527b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - testing pull_request: branches: