From 9f15441622826ffa5d33d3d1de5668ccc0a00ea8 Mon Sep 17 00:00:00 2001 From: KozlovDanD Date: Wed, 11 Jun 2025 11:38:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B3=D0=BE=20=D0=B2?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unittest.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unittest.cpp b/unittest.cpp index 42f6aa9..824566b 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -1,4 +1,4 @@ - #define DOCTEST_CONFIG_NO_MULTITHREADING +#define DOCTEST_CONFIG_NO_MULTITHREADING #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest.h" #include "histogram_internal.h" @@ -43,3 +43,9 @@ TEST_CASE("positive and negative numbers") CHECK(min == -3); CHECK(max == 5); } +TEST_CASE("empty vector") { + double min = 0; + double max = 0; + CHECK(!find_minmax({}, min, max)); +} +