init
This commit is contained in:
11
tests/meson.build
Normal file
11
tests/meson.build
Normal 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
13
tests/split_str.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user