From f0f0f3412b69f9f5a84786fd3eb750188dbb4871 Mon Sep 17 00:00:00 2001 From: "Ivan (BeloziorovIA)" Date: Mon, 5 May 2025 03:26:56 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=B9=D1=88=D0=B5=D0=B3=D0=BE=20=D1=82=D0=B5=D1=81=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B2=20unittest.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unittest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unittest.cpp b/unittest.cpp index e69de29..a9ba7e5 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -0,0 +1,12 @@ +#define DOCTEST_CONFIG_NO_MULTITHREADING +#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN +#include "doctest.h" +#include "histogram_internal.h" + +TEST_CASE("distinct positive numbers") { + double min = 0; + double max = 0; + find_minmax({1, 2}, min, max); + CHECK(min == 1); + CHECK(max == 2); +}