build: добавлены файлы
Этот коммит содержится в:
@@ -31,6 +31,8 @@
|
|||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
|
<Unit filename="block_with.cpp" />
|
||||||
|
<Unit filename="block_with.h" />
|
||||||
<Unit filename="doctest.h" />
|
<Unit filename="doctest.h" />
|
||||||
<Unit filename="histogram.cpp" />
|
<Unit filename="histogram.cpp" />
|
||||||
<Unit filename="histogram_internal.h" />
|
<Unit filename="histogram_internal.h" />
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
#include "histogram_internal.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 min = 0;
|
||||||
double max = 0;
|
double max = 0;
|
||||||
find_minmax({1}, min, max);
|
find_minmax({1}, min, max);
|
||||||
@@ -26,3 +28,8 @@ TEST_CASE("vector of indentical elements") {
|
|||||||
CHECK(min == 5);
|
CHECK(min == 5);
|
||||||
CHECK(max == 5);
|
CHECK(max == 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("BLOCK_WIDTH CHECK") {
|
||||||
|
double BLOCK_WIDTH = 20;
|
||||||
|
CHECK(input_block_with(BLOCK_WIDTH));
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,3 +9,57 @@
|
|||||||
|
|
||||||
1682266667 c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\histogram_internal.h
|
1682266667 c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\histogram_internal.h
|
||||||
|
|
||||||
|
1682319140 source:c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\unittest.cpp
|
||||||
|
"doctest.h"
|
||||||
|
"histogram_internal.h"
|
||||||
|
|
||||||
|
1682267729 c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\doctest.h
|
||||||
|
<signal.h>
|
||||||
|
<ciso646>
|
||||||
|
<cstddef>
|
||||||
|
<ostream>
|
||||||
|
<istream>
|
||||||
|
<type_traits>
|
||||||
|
"doctest_fwd.h"
|
||||||
|
<ctime>
|
||||||
|
<cmath>
|
||||||
|
<climits>
|
||||||
|
<math.h>
|
||||||
|
<new>
|
||||||
|
<cstdio>
|
||||||
|
<cstdlib>
|
||||||
|
<cstring>
|
||||||
|
<limits>
|
||||||
|
<utility>
|
||||||
|
<fstream>
|
||||||
|
<sstream>
|
||||||
|
<iostream>
|
||||||
|
<algorithm>
|
||||||
|
<iomanip>
|
||||||
|
<vector>
|
||||||
|
<atomic>
|
||||||
|
<mutex>
|
||||||
|
<set>
|
||||||
|
<map>
|
||||||
|
<unordered_set>
|
||||||
|
<exception>
|
||||||
|
<stdexcept>
|
||||||
|
<csignal>
|
||||||
|
<cfloat>
|
||||||
|
<cctype>
|
||||||
|
<cstdint>
|
||||||
|
<string>
|
||||||
|
<sys/types.h>
|
||||||
|
<unistd.h>
|
||||||
|
<sys/sysctl.h>
|
||||||
|
<AfxWin.h>
|
||||||
|
<windows.h>
|
||||||
|
<io.h>
|
||||||
|
<sys/time.h>
|
||||||
|
<unistd.h>
|
||||||
|
|
||||||
|
1682328077 source:c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\block_with.cpp
|
||||||
|
"block_with.h"
|
||||||
|
|
||||||
|
1682328180 c:\users\yusuf\onedrive\Äîêóìåíòû\my games\chtoto\block_with.h
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user