From b66b28fba4c110de72382751c4d4c41c6a937366 Mon Sep 17 00:00:00 2001 From: KorneevMA Date: Thu, 26 Sep 2024 07:27:16 +0300 Subject: [PATCH] one more test test --- unittest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unittest.cpp b/unittest.cpp index 727d06c..bf59ed5 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -33,4 +33,12 @@ TEST_CASE("negative elements") { find_minmax({ -81, 2 }, min, max); CHECK(min == -81); CHECK(max == 2); +} + +TEST_CASE("same element") { + double min = 0; + double max = 0; + find_minmax({ 1, 1, 1, 1, 1, 1, 1, 1, 1 }, min, max); + CHECK(min == 1); + CHECK(max == 1); } \ No newline at end of file