From e0b67620fb87d5f5134720aeacac91324d28e8b3 Mon Sep 17 00:00:00 2001 From: EfimovaLA Date: Sat, 1 Jun 2024 23:49:23 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20unittest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.cpp | 2 +- histogram_internal.h | 6 ++++++ unittest.cbp | 38 ++++++++++++++++++++++++++++++++++++++ unittest.cpp | 0 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 histogram_internal.h create mode 100644 unittest.cbp create mode 100644 unittest.cpp diff --git a/histogram.cpp b/histogram.cpp index 6082ec2..2899669 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,7 +1,7 @@ #include "histogram.h" #include -static void find_minmax(const std::vector &numbers, double &min, double &max) +void find_minmax(const std::vector &numbers, double &min, double &max) { min = numbers[0]; max = numbers[0]; diff --git a/histogram_internal.h b/histogram_internal.h new file mode 100644 index 0000000..89f0b61 --- /dev/null +++ b/histogram_internal.h @@ -0,0 +1,6 @@ +#ifndef HISTOGRAM_INTERNAL_H_INCLUDED +#define HISTOGRAM_INTERNAL_H_INCLUDED + +void find_minmax(const std::vector &numbers, double &min, double &max); + +#endif // HISTOGRAM_INTERNAL_H_INCLUDED diff --git a/unittest.cbp b/unittest.cbp new file mode 100644 index 0000000..7f9621b --- /dev/null +++ b/unittest.cbp @@ -0,0 +1,38 @@ + + + + + + diff --git a/unittest.cpp b/unittest.cpp new file mode 100644 index 0000000..e69de29