diff options
| author | Phil Nash | 2011-04-21 19:43:55 +0100 |
|---|---|---|
| committer | Phil Nash | 2011-04-21 19:43:55 +0100 |
| commit | 02e597c2ccff546d0e4739263fa3aceee4f0125a (patch) | |
| tree | af0f6ee0d71d8ecd7a5b0777694ac22a89ee9215 /Test/ExceptionTests.cpp | |
| parent | 81e42ce13953e8dcdfbf8f0b17aebb2d276a5922 (diff) | |
| download | catch3-02e597c2ccff546d0e4739263fa3aceee4f0125a.tar.gz | |
report file/ line of section of unexpected exception is thrown
Diffstat (limited to 'Test/ExceptionTests.cpp')
| -rw-r--r-- | Test/ExceptionTests.cpp | 11 |
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" ); + } + } +} |