22 std::string StringVectorToString(
const std::vector<std::string>&str_vec)
24 std::string str =
"[";
26 for (
const auto& s : str_vec)
36 TEST_CASE(
"カンマで区切った時,カンマが取り除かれ区切られた文字列に分けられるべき")
38 SUBCASE(
"文字列「a,b,c」をカンマで区切った時,「a」「b」「c」に分けられるべき")
40 const std::string str =
"a,b,c";
41 const std::string delim =
",";
43 const std::vector<std::string> ans = {
"a",
"b",
"c" };
46 INFO(
"分割された文字列は次の通りです." << StringVectorToString(result));
51 SUBCASE(
"文字列「a,b,c,」をカンマで区切った時,「a」「b」「c」に分けられるべき")
53 const std::string str =
"a,b,c,";
54 const std::string delim =
",";
56 const std::vector<std::string> ans = {
"a",
"b",
"c" };
59 INFO(
"分割された文字列は次の通りです." << StringVectorToString(result));
64 SUBCASE(
"文字列「,a,b,c」をカンマで区切った時,「」「a」「b」「c」に分けられるべき")
66 const std::string str =
",a,b,c";
67 const std::string delim =
",";
69 const std::vector<std::string> ans = {
"",
"a",
"b",
"c" };
72 INFO(
"分割された文字列は次の通りです." << StringVectorToString(result));