add split string function

This commit is contained in:
chatlanin
2022-03-01 12:03:12 +03:00
parent e872067709
commit d7bff82e02
5 changed files with 35 additions and 35 deletions

View File

@@ -4,10 +4,10 @@
#include "string/string.hpp"
using v_str = std::vector<std::string>;
TEST(split_str, check__func)
TEST(split_str, check)
{
// v_str res {"asdf","qwer","zxcv"};
// ASSERT_EQ(tools::func::split_str("asdf,qwer,zxcv", ','), res);
hack::v_str v { "asdf", "qwer", "zxcv" };
ASSERT_EQ(hack::split_str("asdf,qwer,zxcv", ','), v);
}