diff --git a/unittest.cbp b/unittest.cbp
new file mode 100644
index 0000000..534f497
--- /dev/null
+++ b/unittest.cbp
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/unittest.cpp b/unittest.cpp
new file mode 100644
index 0000000..e1eb33d
--- /dev/null
+++ b/unittest.cpp
@@ -0,0 +1,44 @@
+#define DOCTEST_CONFIG_NO_MULTITHREADING
+#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+#include "doctest.h"
+#include "histogram_internal.h"
+
+TEST_CASE("distinct positive numbers") {
+ double min = 0;
+ double max = 0;
+ find_minmax({1, 2}, min, max);
+ CHECK(min == 1);
+ CHECK(max == 2);
+}
+
+TEST_CASE("distinct negative numbers")
+{
+ double min = 0;
+ double max = 0;
+ find_minmax({-1, -2}, min, max);
+ CHECK(min == -2);
+ CHECK(max == -1);
+}
+TEST_CASE("vector 1 element")
+{
+ double min = 0;
+ double max = 0;
+ find_minmax({1}, min, max);
+ CHECK(min == 1);
+ CHECK(max == 1);
+}
+TEST_CASE("distinct equals numbers")
+{
+ double min = 0;
+ double max = 0;
+ find_minmax({1, 1}, min, max);
+ CHECK(min == 1);
+ CHECK(max == 1);
+}
+TEST_CASE("distinct equals numbers") {
+ double min = 0;
+ double max = 0;
+ find_minmax({1, 2}, min, max);
+ CHECK(min == 1);
+ CHECK(max == 2);
+}
diff --git a/unittest.depend b/unittest.depend
new file mode 100644
index 0000000..a4249ec
--- /dev/null
+++ b/unittest.depend
@@ -0,0 +1,61 @@
+# depslib dependency file v1.0
+1745847481 source:c:\users\koldinad\desktop\lab03\histogram.cpp
+ "histogram.h"
+
+
+
+1745847606 c:\users\koldinad\desktop\lab03\histogram.h
+
+
+1745847891 source:c:\users\koldinad\desktop\lab03\unittest.cpp
+ "doctest.h"
+ "histogram_internal.h"
+
+1745844730 c:\users\koldinad\desktop\lab03\doctest.h
+
+
+
+
+
+
+ "doctest_fwd.h"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+