diff options
| author | Phil Nash | 2017-07-13 08:52:51 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-07-13 08:52:51 +0100 |
| commit | c874a99c6c7cb938769119c0d3a423868e7050d7 (patch) | |
| tree | df8e754858a6a4dc293d09361a8fd53a89cb1fbe /projects/SelfTest/ToStringTuple.cpp | |
| parent | e4456aa243c82e39db5fabf1f9b7fff2ebd900df (diff) | |
| download | catch3-c874a99c6c7cb938769119c0d3a423868e7050d7.tar.gz | |
Enabled c++11 tests in approvals
Diffstat (limited to 'projects/SelfTest/ToStringTuple.cpp')
| -rw-r--r-- | projects/SelfTest/ToStringTuple.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/projects/SelfTest/ToStringTuple.cpp b/projects/SelfTest/ToStringTuple.cpp index dcd1d803..330e427e 100644 --- a/projects/SelfTest/ToStringTuple.cpp +++ b/projects/SelfTest/ToStringTuple.cpp @@ -2,7 +2,7 @@ #include <tuple> -TEST_CASE( "tuple<>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<>", "[toString][tuple]" ) { typedef std::tuple<> type; CHECK( "{ }" == ::Catch::Detail::stringify(type{}) ); @@ -10,34 +10,34 @@ TEST_CASE( "tuple<>", "[toString][tuple][c++11][.]" ) CHECK( "{ }" == ::Catch::Detail::stringify(value) ); } -TEST_CASE( "tuple<int>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<int>", "[toString][tuple]" ) { typedef std::tuple<int> type; CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) ); } -TEST_CASE( "tuple<float,int>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<float,int>", "[toString][tuple]" ) { typedef std::tuple<float,int> type; CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) ); CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) ); } -TEST_CASE( "tuple<string,string>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<string,string>", "[toString][tuple]" ) { typedef std::tuple<std::string,std::string> type; CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) ); } -TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple]" ) { typedef std::tuple<std::tuple<int>,std::tuple<>,float> type; type value { std::tuple<int>{42}, {}, 1.2f }; CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) ); } -TEST_CASE( "tuple<nullptr,int,const char *>", "[toString][tuple][c++11][.]" ) +TEST_CASE( "tuple<nullptr,int,const char *>", "[toString][tuple]" ) { typedef std::tuple<std::nullptr_t,int,const char *> type; type value { nullptr, 42, "Catch me" }; |