From a38f604eed0b40c7236df6fc99da38172aaa9e73 Mon Sep 17 00:00:00 2001
From: YusufovYB <YusufovYB@mpei.ru>
Date: Sun, 23 Apr 2023 20:49:03 +0300
Subject: [PATCH] =?UTF-8?q?build:=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?=
 =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B4?=
 =?UTF-8?q?=D0=BB=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE=D0=B2?=
 =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 histogram_internal.h |  2 ++
 unittest.cbp         | 38 ++++++++++++++++++++++++++++++++++++++
 unittest.cpp         | 12 ++++++++++++
 unittest.depend      | 11 +++++++++++
 4 files changed, 63 insertions(+)
 create mode 100644 histogram_internal.h
 create mode 100644 unittest.cbp
 create mode 100644 unittest.cpp
 create mode 100644 unittest.depend

diff --git a/histogram_internal.h b/histogram_internal.h
new file mode 100644
index 0000000..1806213
--- /dev/null
+++ b/histogram_internal.h
@@ -0,0 +1,2 @@
+#pragma once
+void find_minmax(const std:: vector<double>& numbers, double& minimum, double& maximum);
diff --git a/unittest.cbp b/unittest.cbp
new file mode 100644
index 0000000..7f9621b
--- /dev/null
+++ b/unittest.cbp
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+	<FileVersion major="1" minor="6" />
+	<Project>
+		<Option title="unittest" />
+		<Option pch_mode="2" />
+		<Option compiler="gcc" />
+		<Build>
+			<Target title="Debug">
+				<Option output="bin/Debug/unittest" prefix_auto="1" extension_auto="1" />
+				<Option object_output="obj/Debug/" />
+				<Option type="1" />
+				<Option compiler="gcc" />
+				<Compiler>
+					<Add option="-g" />
+				</Compiler>
+			</Target>
+			<Target title="Release">
+				<Option output="bin/Release/unittest" prefix_auto="1" extension_auto="1" />
+				<Option object_output="obj/Release/" />
+				<Option type="1" />
+				<Option compiler="gcc" />
+				<Compiler>
+					<Add option="-O2" />
+				</Compiler>
+				<Linker>
+					<Add option="-s" />
+				</Linker>
+			</Target>
+		</Build>
+		<Compiler>
+			<Add option="-Wall" />
+		</Compiler>
+		<Extensions>
+			<lib_finder disable_auto="1" />
+		</Extensions>
+	</Project>
+</CodeBlocks_project_file>
diff --git a/unittest.cpp b/unittest.cpp
new file mode 100644
index 0000000..5ca2d51
--- /dev/null
+++ b/unittest.cpp
@@ -0,0 +1,12 @@
+#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}, min, max);
+    CHECK(min == 1);
+    CHECK(max == 1);
+}
diff --git a/unittest.depend b/unittest.depend
new file mode 100644
index 0000000..649b6e9
--- /dev/null
+++ b/unittest.depend
@@ -0,0 +1,11 @@
+# depslib dependency file v1.0
+1682266667 source:c:\users\yusuf\onedrive\���������\my games\chtoto\histogram.cpp
+	<vector>
+	"histogram.h"
+	"histogram_internal.h"
+
+1682264020 c:\users\yusuf\onedrive\���������\my games\chtoto\histogram.h
+	<vector>
+
+1682266667 c:\users\yusuf\onedrive\���������\my games\chtoto\histogram_internal.h
+