From 83d735b09d4594f66371bde33131579682cb65ec Mon Sep 17 00:00:00 2001 From: MakhnovGA Date: Fri, 21 Apr 2023 19:37:55 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=BF=D1=83=D0=BD=D0=BA=D1=82=D0=B0=206=20+=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=20=D0=BD=D0=B0=20find=5Fminmax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab_01.cbp | 3 +++ lab_01.depend | 29 +++++++++++++++++++++++++++++ lab_01.layout | 35 +++++++++++++++++++++++++++++++++++ unittest.cbp | 6 ++++++ unittest.cpp | 17 +++++++++++++++++ unittest.depend | 15 +++++++++++++++ unittest.layout | 25 +++++++++++++++++++++++++ 7 files changed, 130 insertions(+) create mode 100644 lab_01.depend create mode 100644 lab_01.layout create mode 100644 unittest.cpp create mode 100644 unittest.depend create mode 100644 unittest.layout diff --git a/lab_01.cbp b/lab_01.cbp index c6efd23..48c62a6 100644 --- a/lab_01.cbp +++ b/lab_01.cbp @@ -36,6 +36,9 @@ + + diff --git a/lab_01.depend b/lab_01.depend new file mode 100644 index 0000000..a343a64 --- /dev/null +++ b/lab_01.depend @@ -0,0 +1,29 @@ +# depslib dependency file v1.0 +1682090855 source:c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\histogram.cpp + + + + + "histogram.h" + +1681931103 c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\histogram.h + + +1681931332 source:c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\main.cpp + + + + + "histogram.h" + "text.h" + +1681931523 c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\text.h + + +1681931475 source:c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\text.cpp + + + + + "text.h" + diff --git a/lab_01.layout b/lab_01.layout new file mode 100644 index 0000000..57d665d --- /dev/null +++ b/lab_01.layout @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/unittest.cbp b/unittest.cbp index 7f9621b..bffa065 100644 --- a/unittest.cbp +++ b/unittest.cbp @@ -31,6 +31,12 @@ + + + + + diff --git a/unittest.cpp b/unittest.cpp new file mode 100644 index 0000000..23cd218 --- /dev/null +++ b/unittest.cpp @@ -0,0 +1,17 @@ +#define DOCTEST_CONFIG_NO_MULTITHREADING +#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN +#include "doctest.h" +#include "histogram_internal.h" +#include +#include +TEST_CASE("distinct positive numbers") { + double min = 0; + double max = 0; + std::vectorv{1}; + CHECK(v.size() != 0); + CHECK(v.size() != 1); + find_minmax(v, min, max); + CHECK(min == 1); + CHECK(max == 2); + CHECK(min != max); +} diff --git a/unittest.depend b/unittest.depend new file mode 100644 index 0000000..2df752c --- /dev/null +++ b/unittest.depend @@ -0,0 +1,15 @@ +# depslib dependency file v1.0 +1682090965 source:c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\histogram.cpp + + + + + "histogram.h" + "histogram_internal.h" + +1681931103 c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\histogram.h + + +1682091658 c:\users\gmack\onedrive\рабочий стол\lab01\lab_01\histogram_internal.h + + diff --git a/unittest.layout b/unittest.layout new file mode 100644 index 0000000..638e81b --- /dev/null +++ b/unittest.layout @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + +