From 28d1955ea819f160a554f1c282b180fb1da760ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 28 Nov 2017 21:29:34 +0100 Subject: [PATCH] Also test Approx template constructor --- projects/SelfTest/Baselines/console.sw.approved.txt | 4 ++-- projects/SelfTest/Baselines/xml.sw.approved.txt | 4 ++-- projects/SelfTest/UsageTests/Approx.tests.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 8850a87a..31c60d0a 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -1141,13 +1141,13 @@ with expansion: Approx.tests.cpp:: PASSED: - REQUIRE( td >= Approx(10.0) ) + REQUIRE( td >= Approx(td) ) with expansion: StrongDoubleTypedef(10) >= Approx( 10.0 ) Approx.tests.cpp:: PASSED: - REQUIRE( Approx(10.0) >= td ) + REQUIRE( Approx(td) >= td ) with expansion: Approx( 10.0 ) >= StrongDoubleTypedef(10) diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 00eb9989..4ae2e015 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -1273,7 +1273,7 @@ - td >= Approx(10.0) + td >= Approx(td) StrongDoubleTypedef(10) >= Approx( 10.0 ) @@ -1281,7 +1281,7 @@ - Approx(10.0) >= td + Approx(td) >= td Approx( 10.0 ) >= StrongDoubleTypedef(10) diff --git a/projects/SelfTest/UsageTests/Approx.tests.cpp b/projects/SelfTest/UsageTests/Approx.tests.cpp index b3974971..5930075d 100644 --- a/projects/SelfTest/UsageTests/Approx.tests.cpp +++ b/projects/SelfTest/UsageTests/Approx.tests.cpp @@ -189,8 +189,8 @@ TEST_CASE( "Comparison with explicitly convertible types", "[Approx]" ) REQUIRE(Approx(9.0) <= td); REQUIRE(td >= Approx(9.0)); - REQUIRE(td >= Approx(10.0)); - REQUIRE(Approx(10.0) >= td); + REQUIRE(td >= Approx(td)); + REQUIRE(Approx(td) >= td); REQUIRE(Approx(11.0) >= td); }