2 #include <gtest/gtest.h> 10 TEST(DDIntTest, constructorTest) {
11 DDInt param1(
"param1",0,
"param1",1);
12 DDInt param2(
"",0,
"",1,100);
13 DDInt param3(
"\000",(
unsigned int)-1,
"param1", 1, -100, -10);
19 TEST(DDIntTest, valueTest) {
46 TEST(DDIntTest, streamTest) {
47 DDInt param1(
"param1",0,
"param1",1);
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)