Fix double-to-float conversion warning in tests

This commit is contained in:
Martin Hořeňovský 2017-04-25 17:48:28 +02:00
parent be0fc60c07
commit b245eaa7d1

View File

@ -21,7 +21,7 @@ TEST_CASE( "tuple<float,int>", "[toString][tuple][c++11][.]" )
{ {
typedef std::tuple<float,int> type; typedef std::tuple<float,int> type;
CHECK( "1.2f" == Catch::toString(float(1.2)) ); CHECK( "1.2f" == Catch::toString(float(1.2)) );
CHECK( "{ 1.2f, 0 }" == Catch::toString(type{1.2,0}) ); CHECK( "{ 1.2f, 0 }" == Catch::toString(type{1.2f,0}) );
} }
TEST_CASE( "tuple<string,string>", "[toString][tuple][c++11][.]" ) TEST_CASE( "tuple<string,string>", "[toString][tuple][c++11][.]" )