diff --git a/unittest.cpp b/unittest.cpp index 3c81003..3508c15 100644 --- a/unittest.cpp +++ b/unittest.cpp @@ -14,9 +14,7 @@ TEST_CASE("distinct positive numbers") { TEST_CASE("empty vector"){ double min = 0; double max = 0; - find_minmax({ NULL }, min, max); - CHECK(min == 0); - CHECK(max == 0); + CHECK(!find_minmax({}, min, max)); } TEST_CASE("same elements"){ @@ -24,7 +22,6 @@ TEST_CASE("same elements"){ double max = 0; find_minmax({ 1, 1 }, min, max); CHECK(min == max); - CHECK(max == min); } TEST_CASE("only one number"){