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)); +} +