| 224 | } |
| 225 | |
| 226 | void OptionHandlerTest::testFloatNumberOptionHandler_max() |
| 227 | { |
| 228 | FloatNumberOptionHandler handler(PREF_TIMEOUT, "", "", -1, 10.0); |
| 229 | Option option; |
| 230 | handler.parse(option, "10.0"); |
| 231 | CPPUNIT_ASSERT_EQUAL(std::string("10.0"), option.get(PREF_TIMEOUT)); |
| 232 | try { |
| 233 | handler.parse(option, "10.1"); |
| 234 | CPPUNIT_FAIL("exception must be thrown."); |
| 235 | } |
| 236 | catch (Exception& e) { |
| 237 | } |
| 238 | CPPUNIT_ASSERT_EQUAL(std::string("*-10.0"), |
| 239 | handler.createPossibleValuesString()); |
| 240 | } |
| 241 | |
| 242 | void OptionHandlerTest::testFloatNumberOptionHandler_min_max() |
| 243 | { |
nothing calls this directly
no test coverage detected