2 #include <gtest/gtest.h> 10 TEST(DDStringTest, constructorTest) {
11 DDString param1(
"param1",0,
"param1",
"Hello World");
13 DDString param3(
"\000",0,
"\000",
"\000");
19 TEST(DDStringTest, valueTest) {
46 TEST(DDStringTest, streamTest) {
47 DDString param1(
"param1",0,
"param1",
"Hello World");
50 ASSERT_EQ(param1.getName() +
":" + param1.getValue().toString(),stream.str());
55 int main(
int argc,
char** argv) {
56 testing::InitGoogleTest(&argc, argv);
58 srand((
unsigned int)random());
60 return RUN_ALL_TESTS();
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
int main(int argc, char **argv)