hack/tests/split_str.cpp

14 lines
221 B
C++
Raw Normal View History

2022-02-28 12:44:18 +03:00
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "string/string.hpp"
2022-03-01 12:03:12 +03:00
TEST(split_str, check)
2022-02-28 12:44:18 +03:00
{
2022-03-01 12:03:12 +03:00
hack::v_str v { "asdf", "qwer", "zxcv" };
ASSERT_EQ(hack::split_str("asdf,qwer,zxcv", ','), v);
2022-02-28 12:44:18 +03:00
}