hack/tests/string.cpp
2022-03-02 12:11:21 +03:00

13 lines
241 B
C++

#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "string/string.hpp"
TEST(split_str, check)
{
std::vector<std::string> v { "asdf", "qwer", "zxcv" };
ASSERT_EQ(hack::string::split_str("asdf,qwer,zxcv", ','), v);
}