Changeset 3e6b93 for src/Parameters/unittests/DiscreteValueTest.cpp
- Timestamp:
- Feb 4, 2015, 9:56:43 PM (11 years ago)
- Parents:
- 76a109
- git-author:
- Frederik Heber <heber@…> (09/23/14 16:34:50)
- git-committer:
- Frederik Heber <heber@…> (02/04/15 21:56:43)
- File:
-
- 1 edited
-
src/Parameters/unittests/DiscreteValueTest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parameters/unittests/DiscreteValueTest.cpp
r76a109 r3e6b93 175 175 176 176 // setting invalid and getting it, throws 177 test.set(4); 178 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 179 CPPUNIT_ASSERT_THROW(test.get(), ParameterValueException); 180 test.set(0); 181 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 182 CPPUNIT_ASSERT_THROW(test.get(), ParameterValueException); 177 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 178 CPPUNIT_ASSERT_THROW(test.set(4), ParameterValueException); 179 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 180 CPPUNIT_ASSERT_THROW(test.set(0), ParameterValueException); 183 181 184 182 // checking all valid ones … … 203 201 204 202 // setting invalid and getting it, throws 205 test.setAsString(toString(4)); 206 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 207 CPPUNIT_ASSERT_THROW(test.getAsString(), ParameterValueException); 208 test.setAsString(toString(0)); 209 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 210 CPPUNIT_ASSERT_THROW(test.getAsString(), ParameterValueException); 203 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 204 CPPUNIT_ASSERT_THROW(test.setAsString(toString(4)), ParameterValueException); 205 std::cout << "The following Assert failures are intended and do not indicate a failure of the test." << std::endl; 206 CPPUNIT_ASSERT_THROW(test.setAsString(toString(0)), ParameterValueException); 211 207 212 208 // checking all valid ones
Note:
See TracChangeset
for help on using the changeset viewer.
