|
|
|
@ -2,8 +2,10 @@
|
|
|
|
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
|
|
|
#include "doctest.h"
|
|
|
|
|
#include "histogram_internal.h"
|
|
|
|
|
#include "block_with.h"
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
TEST_CASE("distinct positive numbers") {
|
|
|
|
|
TEST_CASE("only one vector in numbers") {
|
|
|
|
|
double min = 0;
|
|
|
|
|
double max = 0;
|
|
|
|
|
find_minmax({1}, min, max);
|
|
|
|
@ -26,3 +28,8 @@ TEST_CASE("vector of indentical elements") {
|
|
|
|
|
CHECK(min == 5);
|
|
|
|
|
CHECK(max == 5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_CASE("BLOCK_WIDTH CHECK") {
|
|
|
|
|
double BLOCK_WIDTH = 20;
|
|
|
|
|
CHECK(input_block_with(BLOCK_WIDTH));
|
|
|
|
|
}
|
|
|
|
|