mirror of
				https://github.com/red0124/ssp.git
				synced 2025-10-30 12:56:45 +01:00 
			
		
		
		
	try fix pipeline
This commit is contained in:
		
							parent
							
								
									f6b0201bf5
								
							
						
					
					
						commit
						5ea941628b
					
				| @ -1,19 +1,17 @@ | |||||||
| #include <ss/converter.hpp> |  | ||||||
| #include <doctest/doctest.h> |  | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
|  | #include <doctest/doctest.h> | ||||||
|  | #include <ss/converter.hpp> | ||||||
| 
 | 
 | ||||||
| TEST_CASE("testing split") { | TEST_CASE("testing split") { | ||||||
|     ss::converter c; |     ss::converter c; | ||||||
|     for (const auto& [s, expected, delim] : |     for (const auto& [s, expected, delim] : | ||||||
|          // clang-format off
 |          {std::make_tuple("a,b,c,d", std::vector{"a", "b", "c", "d"}, ","), | ||||||
|                 {std::tuple{"a,b,c,d", std::vector{"a", "b", "c", "d"}, ","}, |           {"", {}, " "}, | ||||||
|                 {"", {}, " "}, |           {"a,b,c", {"a", "b", "c"}, ""}, | ||||||
|                 {"a,b,c", {"a", "b", "c"}, ""}, |           {" x x x x | x ", {" x x x x ", " x "}, "|"}, | ||||||
|                 {" x x x x | x ", {" x x x x ", " x "}, "|"}, |           {"a::b::c::d", {"a", "b", "c", "d"}, "::"}, | ||||||
|                 {"a::b::c::d", {"a", "b", "c", "d"}, "::"}, |           {"x\t-\ty", {"x", "y"}, "\t-\t"}, | ||||||
|                 {"x\t-\ty", {"x", "y"}, "\t-\t"}, |           {"x", {"x"}, ","}}) { | ||||||
|                 {"x", {"x"}, ","}} // clang-format on
 |  | ||||||
|     ) { |  | ||||||
|         auto split = c.split(s, delim); |         auto split = c.split(s, delim); | ||||||
|         CHECK(split.size() == expected.size()); |         CHECK(split.size() == expected.size()); | ||||||
|         for (size_t i = 0; i < split.size(); ++i) { |         for (size_t i = 0; i < split.size(); ++i) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user