From 76950f6e99fe831a33da7d0468c1dace8ade55e3 Mon Sep 17 00:00:00 2001 From: ShinkarenkoVA Date: Wed, 8 May 2024 08:39:47 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=82=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest.cpp b/unittest.cpp index 851208c..3c81003 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -14,7 +14,7 @@ TEST_CASE("distinct positive numbers") { TEST_CASE("empty vector"){ double min = 0; double max = 0; - find_minmax({ 0, 0 }, min, max); + find_minmax({ NULL }, min, max); CHECK(min == 0); CHECK(max == 0); } @@ -38,7 +38,7 @@ TEST_CASE("only one number"){ TEST_CASE("distinct negative numbers") { double min = 0; double max = 0; - find_minmax({0, -2}, min, max); + find_minmax({-1, -2}, min, max); CHECK(min == -2); - CHECK(max == 0); + CHECK(max == -1); }