Сравнить коммиты
8 Коммитов
8f171ce7ce
...
66b8f3e309
Автор | SHA1 | Дата |
---|---|---|
|
66b8f3e309 | 2 лет назад |
|
f437d5f855 | 2 лет назад |
|
84c9561686 | 2 лет назад |
|
6935f4be20 | 2 лет назад |
|
0aeeb4226f | 2 лет назад |
|
47fc890aab | 2 лет назад |
|
8c7a8ccea9 | 2 лет назад |
|
4fcde99b34 | 2 лет назад |
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Двоичный файл не отображается.
@ -0,0 +1,8 @@
|
||||
#ifndef HISTOGRAM_INTERNAL_H_INCLUDED
|
||||
#define HISTOGRAM_INTERNAL_H_INCLUDED
|
||||
|
||||
#include <vector>
|
||||
|
||||
void find_minmax(std::vector<double> numbers, double &min, double &max);
|
||||
|
||||
#endif // HISTOGRAM_INTERNAL_H_INCLUDED
|
Двоичный файл не отображается.
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<CodeBlocks_project_file>
|
||||
<FileVersion major="1" minor="6" />
|
||||
<Project>
|
||||
<Option title="unitest" />
|
||||
<Option pch_mode="2" />
|
||||
<Option compiler="gcc" />
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="bin/Debug/unitest" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Debug/" />
|
||||
<Option type="1" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-g" />
|
||||
</Compiler>
|
||||
</Target>
|
||||
<Target title="Release">
|
||||
<Option output="bin/Release/unitest" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Release/" />
|
||||
<Option type="1" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-O2" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-s" />
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Wall" />
|
||||
</Compiler>
|
||||
<Extensions>
|
||||
<lib_finder disable_auto="1" />
|
||||
</Extensions>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
@ -0,0 +1,18 @@
|
||||
#define DOCTEST_CONFIG_NO_MULTITHREADING
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
#include "doctest.h"
|
||||
#include "histogram_internal.h"
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
TEST_CASE("distinct positive numbers")
|
||||
{
|
||||
double min = 0;
|
||||
double max = 0;
|
||||
std::vector<double>v{1};
|
||||
CHECK(v.size() != 0);
|
||||
CHECK(v.size() != 1);
|
||||
find_minmax(v, min, max);
|
||||
CHECK(min == 1);
|
||||
CHECK(max == 2);
|
||||
CHECK(min != max);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
# depslib dependency file v1.0
|
||||
1682340687 source:c:\users\dell_latitude_e7440\desktop\lab34\unitest.cpp
|
||||
"doctest.h"
|
||||
"histogram_internal.h"
|
||||
<vector>
|
||||
<iostream>
|
||||
|
||||
1682337424 c:\users\dell_latitude_e7440\desktop\lab34\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>
|
||||
|
||||
1682340272 c:\users\dell_latitude_e7440\desktop\lab34\histogram_internal.h
|
||||
<vector>
|
||||
|
||||
1682335166 source:c:\users\dell_latitude_e7440\desktop\lab34\histogram.cpp
|
||||
<math.h>
|
||||
<iostream>
|
||||
<conio.h>
|
||||
<vector>
|
||||
"histogram.h"
|
||||
|
||||
1682334985 c:\users\dell_latitude_e7440\desktop\lab34\histogram.h
|
||||
<vector>
|
||||
|
Загрузка…
Ссылка в новой задаче