Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fix double-to-float conversion warning in tests

Commit
b245eaa7d1f0043026a1e50631db12ca6804b0e2
Author
Martin Hořeňovský ·
Parents
be0fc60c0769

Files · Download .tar.gz

Changes

 projects/SelfTest/ToStringTuple.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/SelfTest/ToStringTuple.cpp b/projects/SelfTest/ToStringTuple.cpp
index 86f68d37..9c855715 100644
--- a/projects/SelfTest/ToStringTuple.cpp
+++ b/projects/SelfTest/ToStringTuple.cpp
@@ -21,7 +21,7 @@ TEST_CASE( "tuple<float,int>", "[toString][tuple][c++11][.]" )
 {
     typedef std::tuple<float,int> type;
     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][.]" )