Remove unused type from tests

This commit is contained in:
Martin Hořeňovský 2019-01-27 00:03:11 +01:00
parent 50fefd059a
commit 61f4c7ab85
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -65,10 +65,6 @@ TEST_CASE( "variant<variant<float, int>, string>", "[toString][variant][approval
CHECK( "0" == ::Catch::Detail::stringify(type{0}) ); CHECK( "0" == ::Catch::Detail::stringify(type{0}) );
CHECK( "\"foo\"" == ::Catch::Detail::stringify(type{"foo"}) ); CHECK( "\"foo\"" == ::Catch::Detail::stringify(type{"foo"}) );
struct sample {
operator int() const { throw 42; }
};
SECTION("valueless nested variant") { SECTION("valueless nested variant") {
type value = inner{0.5f}; type value = inner{0.5f};
REQUIRE( std::holds_alternative<inner>(value) ); REQUIRE( std::holds_alternative<inner>(value) );