Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/Test/ExceptionTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2011-04-21 19:43:55 +0100
committerPhil Nash2011-04-21 19:43:55 +0100
commit02e597c2ccff546d0e4739263fa3aceee4f0125a (patch)
treeaf0f6ee0d71d8ecd7a5b0777694ac22a89ee9215 /Test/ExceptionTests.cpp
parent81e42ce13953e8dcdfbf8f0b17aebb2d276a5922 (diff)
downloadcatch3-02e597c2ccff546d0e4739263fa3aceee4f0125a.tar.gz
report file/ line of section of unexpected exception is thrown
Diffstat (limited to 'Test/ExceptionTests.cpp')
-rw-r--r--Test/ExceptionTests.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/ExceptionTests.cpp b/Test/ExceptionTests.cpp
index 1d45200e..ea783979 100644
--- a/Test/ExceptionTests.cpp
+++ b/Test/ExceptionTests.cpp
@@ -109,3 +109,14 @@ TEST_CASE_NORETURN( "./failing/exceptions/custom/double", "Unexpected custom exc
{
throw double( 3.14 );
}
+
+TEST_CASE( "./failing/exceptions/in-section", "Exceptions thrown from sections report file/ line or section" )
+{
+ SECTION( "the section", "" )
+ {
+ SECTION( "the section2", "" )
+ {
+ throw std::domain_error( "Exception from section" );
+ }
+ }
+}