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