diff --git a/doctest.h b/doctest.h
index 5c754cd..826f0f5 100644
--- a/doctest.h
+++ b/doctest.h
@@ -5724,7 +5724,7 @@ namespace {
std::tm timeInfo;
#ifdef DOCTEST_PLATFORM_WINDOWS
- gmtime_s(&timeInfo, &rawtime);
+// gmtime_s(&timeInfo, &rawtime);
#else // DOCTEST_PLATFORM_WINDOWS
gmtime_r(&rawtime, &timeInfo);
#endif // DOCTEST_PLATFORM_WINDOWS
diff --git a/lab01.cbp b/lab01.cbp
index bad2e84..833fc02 100644
--- a/lab01.cbp
+++ b/lab01.cbp
@@ -41,6 +41,10 @@
+
+
+
+
diff --git a/main.cpp b/main.cpp
index 1ecb83b..9a5a050 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,6 +2,7 @@
#include
#include "histogram.h"
#include "text.h"
+#include "svg.h"
using namespace std;
diff --git a/unittest.cpp b/unittest.cpp
index a9ba7e5..4022e4c 100644
--- a/unittest.cpp
+++ b/unittest.cpp
@@ -10,3 +10,36 @@ TEST_CASE("distinct positive numbers") {
CHECK(min == 1);
CHECK(max == 2);
}
+
+TEST_CASE("blank vector") {
+ double min = 0;
+ double max = 0;
+ find_minmax({NULL}, min, max);
+ CHECK(min == 0);
+ CHECK(max == 0);
+}
+
+TEST_CASE("one element vector"){
+ double min = 0;
+ double max = 0;
+ find_minmax({5}, min, max);
+ CHECK(min == 5);
+ CHECK(max == 5);
+}
+
+TEST_CASE("negative elements vector"){
+ double min = 0;
+ double max = 0;
+ find_minmax({-3, -7, -24}, min, max);
+ CHECK(min == -24);
+ CHECK(max == -3);
+}
+
+TEST_CASE("same elements vector"){
+ double min = 0;
+ double max = 0;
+ find_minmax({8, 8, 8}, min, max);
+ CHECK(min == 8);
+ CHECK(max == 8);
+}
+