From ca0634537dd45da49e0193ec56e24d8c678a71c7 Mon Sep 17 00:00:00 2001 From: ShinkarenkoVA Date: Wed, 8 May 2024 15:57:36 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=20=D1=82=D0=B5=D1=81=D1=82=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D1=82=D0=BE=D0=B9=20=D0=B2=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unittest.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/unittest.cpp b/unittest.cpp index 3c81003..3508c15 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -14,9 +14,7 @@ TEST_CASE("distinct positive numbers") { TEST_CASE("empty vector"){ double min = 0; double max = 0; - find_minmax({ NULL }, min, max); - CHECK(min == 0); - CHECK(max == 0); + CHECK(!find_minmax({}, min, max)); } TEST_CASE("same elements"){ @@ -24,7 +22,6 @@ TEST_CASE("same elements"){ double max = 0; find_minmax({ 1, 1 }, min, max); CHECK(min == max); - CHECK(max == min); } TEST_CASE("only one number"){