2 #include <gtest/gtest.h> 10 TEST(DDEnumTest, constructorTest) {
15 DDEnum param1(
"param1",0,
"param1",0,dict);
16 DDEnum param2(
"",0,
"",
"ONE",dict);
17 DDEnum param3(
"\000",0,
"\000", 0, dict);
23 TEST(DDEnumTest, valueTest) {
83 int hash = (int)boost::hash<string>()(
"TWO");
87 TEST(DDEnumTest, streamTest) {
92 DDEnum param1(
"param1",0,
"param1",1,dict);
95 ASSERT_EQ(param1.getName() +
":" + param1.getValue().toString(),stream.str());
100 int main(
int argc,
char** argv) {
101 testing::InitGoogleTest(&argc, argv);
103 srand((
unsigned int)random());
105 return RUN_ALL_TESTS();
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
int main(int argc, char **argv)