This commit is contained in:
chatlanin
2022-02-28 12:44:18 +03:00
commit 0ad600c339
12 changed files with 145 additions and 0 deletions

11
tests/meson.build Normal file
View File

@@ -0,0 +1,11 @@
gtest_proj = subproject('gtest')
gtest_dep = gtest_proj.get_variable('gtest_main_dep')
test(
'split_str',
executable(
'split_str',
'split_str.cpp',
dependencies: [ string_dep, gtest_dep ]
)
)

13
tests/split_str.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "string/string.hpp"
using v_str = std::vector<std::string>;
TEST(split_str, check__func)
{
// v_str res {"asdf","qwer","zxcv"};
// ASSERT_EQ(tools::func::split_str("asdf,qwer,zxcv", ','), res);
}