2 #include <gtest/gtest.h> 10 TEST(DDDoubleTest, constructorTest) {
11 DDDouble param1(
"param1",0,
"param1",0.5);
13 DDDouble param3(
"\000",0,
"\000", -0, -3.4e100, 43.5e20);
19 TEST(DDDoubleTest, valueTest) {
46 TEST(DDDoubleTest, streamTest) {
47 DDDouble param1(
"param1",0,
"param1",1.0);
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)