summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/HelperMacros.h
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-13 09:52:00 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-13 09:52:00 +0200
commit7e306f41b0b1930e3cb20c533ccd665a71e73c7e (patch)
tree21be177984fc9c12ac260e8f794c74df20bc773d /include/cppunit/extensions/HelperMacros.h
parent7902eb988d167b6cddd88b6c5be4385b203080eb (diff)
downloadcppunit-7e306f41b0b1930e3cb20c533ccd665a71e73c7e.tar.gz
correct documentation, sf#2186611
std::vector::at() throws std::out_of_range and not std::invalid_argument
Diffstat (limited to 'include/cppunit/extensions/HelperMacros.h')
-rw-r--r--include/cppunit/extensions/HelperMacros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h
index 12431e4..c461b1b 100644
--- a/include/cppunit/extensions/HelperMacros.h
+++ b/include/cppunit/extensions/HelperMacros.h
@@ -308,13 +308,13 @@
* #include <vector>
* class MyTest : public CppUnit::TestFixture {
* CPPUNIT_TEST_SUITE( MyTest );
- * CPPUNIT_TEST_EXCEPTION( testVectorAtThrow, std::invalid_argument );
+ * CPPUNIT_TEST_EXCEPTION( testVectorAtThrow, std::out_of_range );
* CPPUNIT_TEST_SUITE_END();
* public:
* void testVectorAtThrow()
* {
* std::vector<int> v;
- * v.at( 1 ); // must throw exception std::invalid_argument
+ * v.at( 1 ); // must throw exception std::out_of_range
* }
* };
* \endcode