Menu

#193 Wrong exception in CPPUNIT_TEST_EXCEPTION() example

1.12.0
open
nobody
5
2008-10-22
2008-10-22
No

Example states that std::vector::at() throws std::invalid_argument exception, while in reality it should be std::out_of_range. It makes the example invalid, as the test will fail.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.