From e27d41c5c4357f78861d1d951eaa72f90723d2bb Mon Sep 17 00:00:00 2001 From: "lab01(PokhilAA)" Date: Sun, 5 May 2024 21:47:22 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B8=D0=BD=D0=B4=D0=B8=D0=B2=D0=B8?= =?UTF-8?q?=D0=B4=D1=83=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D0=B0=D0=BD=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unittest.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/unittest.cpp b/unittest.cpp index 4f8dc54..97ab3f9 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -2,7 +2,7 @@ #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest.h" #include "histogram_internal.h" - +#include "verif.h" TEST_CASE("distinct positive numbers") { double min = 0; double max = 0; @@ -38,3 +38,20 @@ TEST_CASE("identical elements") { CHECK (min == 1); CHECK (max == 1); } + +TEST_CASE("distinct interval1") { + double interval = 5; + bool check; + verification(check); + CHECK (check == true); + +} + +TEST_CASE("distinct interval2") { + double interval = 10; + bool check; + verification(check); + CHECK (check == false); + +} +