diff options
| author | Martin Hořeňovský | 2020-05-03 09:58:46 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-03 09:58:46 +0200 |
| commit | 33c58dad419ccce92882e9edbe4fc6124bc193ee (patch) | |
| tree | 3180bb3b0343a55450f083a39568dfcd31f64ba6 /tests/SelfTest/UsageTests | |
| parent | 68061bbed4d212c6601059704f42467edf36b835 (diff) | |
| download | catch3-33c58dad419ccce92882e9edbe4fc6124bc193ee.tar.gz | |
Remove duplicated test for #1027
Diffstat (limited to 'tests/SelfTest/UsageTests')
| -rw-r--r-- | tests/SelfTest/UsageTests/Compilation.tests.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/tests/SelfTest/UsageTests/Compilation.tests.cpp b/tests/SelfTest/UsageTests/Compilation.tests.cpp index 9e4211ff..0f339cb8 100644 --- a/tests/SelfTest/UsageTests/Compilation.tests.cpp +++ b/tests/SelfTest/UsageTests/Compilation.tests.cpp @@ -61,10 +61,6 @@ namespace { namespace CompilationTests { return val == f.i; } - struct Y { - uint32_t v : 1; - }; - void throws_int(bool b) { if (b) { throw 1; @@ -142,9 +138,11 @@ namespace { namespace CompilationTests { REQUIRE (x == 4); } - - TEST_CASE("#1027") { - Y y{0}; + TEST_CASE("#1027: Bitfields can be captured") { + struct Y { + uint32_t v : 1; + }; + Y y{ 0 }; REQUIRE(y.v == 0); REQUIRE(0 == y.v); } @@ -216,15 +214,6 @@ namespace { namespace CompilationTests { #pragma warning(pop) #endif - TEST_CASE( "#1027: Bitfields can be captured" ) { - struct Y { - uint32_t v : 1; - }; - Y y{ 0 }; - REQUIRE( y.v == 0 ); - REQUIRE( 0 == y.v ); - } - TEST_CASE("#1319: Sections can have description (even if it is not saved", "[compilation]") { SECTION("SectionName", "This is a long form section description") { SUCCEED(); |