2 #include <gtest/gtest.h> 10 TEST(DDBoolTest, constructorTest) {
11 DDBool param1(
"param1",0,
"param1",
true);
12 DDBool param2(
"",0,
"",
false);
13 DDBool param3(
"\000",0,
"\000",
false);
19 TEST(DDBoolTest, valueTest) {
46 TEST(DDBoolTest, streamTest) {
47 DDBool param1(
"param1",0,
"param1",
true);
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)