New upstream version 8.1.0
This commit is contained in:
15
common/tests/TestStringTk.cpp
Normal file
15
common/tests/TestStringTk.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <common/toolkit/StringTk.h>
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(StringTk, implode)
|
||||
{
|
||||
EXPECT_EQ(std::string(""), StringTk::implode(",", std::vector<int>()));
|
||||
EXPECT_EQ(std::string("1"), StringTk::implode(",", std::vector<int>({1})));
|
||||
EXPECT_EQ(std::string("1,2,3"), StringTk::implode(",", std::vector<int>({1,2,3})));
|
||||
}
|
||||
Reference in New Issue
Block a user