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 @@ + + + + + + + + + + + + + + + + + + + + + + + + +