Changeset 9356 for code/branches/testing/test/util
- Timestamp:
- Sep 1, 2012, 11:32:20 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/test/util/ConvertTest.cc
r9114 r9356 91 91 EXPECT_EQ('\n', multi_cast<char>(std::string("\n"))); 92 92 EXPECT_EQ('\0', multi_cast<char>(std::string(""))); 93 EXPECT_EQ('1', multi_cast<char>(std::string("123"))); 93 94 94 95 // bool 95 96 EXPECT_TRUE(multi_cast<bool>(std::string("true"))); 96 97 EXPECT_FALSE(multi_cast<bool>(std::string("false"))); 98 EXPECT_FALSE(multi_cast<bool>(std::string("0"))); 99 EXPECT_FALSE(multi_cast<bool>(std::string("0.123"))); 100 EXPECT_TRUE(multi_cast<bool>(std::string("1"))); 101 EXPECT_TRUE(multi_cast<bool>(std::string("123.456"))); 97 102 98 103 // TODO: Check consistency of conversion depending on MathConvert.h and reversibility
Note: See TracChangeset
for help on using the changeset viewer.