mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-23 05:46:11 +01:00
ToStringTuple - gcc doesn't like tuple init_list ctor
This commit is contained in:
parent
13cbdf7e7d
commit
f559a51926
@ -33,7 +33,7 @@ TEST_CASE( "tuple<string,string>", "[toString][tuple]" )
|
|||||||
TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple]" )
|
TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple]" )
|
||||||
{
|
{
|
||||||
typedef std::tuple<std::tuple<int>,std::tuple<>,float> type;
|
typedef std::tuple<std::tuple<int>,std::tuple<>,float> type;
|
||||||
type value { {42}, {}, 1.2f };
|
type value { std::tuple<int>{42}, {}, 1.2f };
|
||||||
CHECK( "{ { 42 }, { }, 1.2f }" == Catch::toString(value) );
|
CHECK( "{ { 42 }, { }, 1.2f }" == Catch::toString(value) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user