Changeset 9225 for code/branches/testing/test
- Timestamp:
- May 19, 2012, 11:24:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/test/util/MultiTypeTest.cc
r9224 r9225 14 14 // x set(value) 15 15 // ? set(pointer) 16 // x set<type>(value)16 // x force<type>(value) 17 17 18 18 // x convert<type>() … … 203 203 204 204 ////////////////////// 205 // set<type>(value) //205 // force<type>(value) // 206 206 ////////////////////// 207 207 TEST(MultiType, SetValueWithTypeIntToString) … … 212 212 EXPECT_EQ("Hello", mt.get<std::string>()); 213 213 214 mt. set<int>(1234);214 mt.force<int>(1234); 215 215 216 216 EXPECT_TRUE(mt.isType<int>()); … … 225 225 EXPECT_EQ("Hello", mt.get<std::string>()); 226 226 227 mt. set<int>("1234");227 mt.force<int>("1234"); 228 228 229 229 EXPECT_TRUE(mt.isType<int>()); … … 238 238 EXPECT_EQ(4321, mt.get<int>()); 239 239 240 mt. set<int>(1234);240 mt.force<int>(1234); 241 241 242 242 EXPECT_TRUE(mt.isType<int>());
Note: See TracChangeset
for help on using the changeset viewer.