Сравнить коммиты

...

8 Коммитов

Автор SHA1 Сообщение Дата
LiTekho 66b8f3e309 code: test update
2 лет назад
LiTekho f437d5f855 code: update to 5
2 лет назад
LiTekho 84c9561686 code: update to 5
2 лет назад
LiTekho 6935f4be20 code: update to 5
2 лет назад
LiTekho 0aeeb4226f code: test update
2 лет назад
LiTekho 47fc890aab code: test update
2 лет назад
LiTekho 8c7a8ccea9 code: uodate to 5
2 лет назад
LiTekho 4fcde99b34 build: doctest uploaded
2 лет назад

Разница между файлами не показана из-за своего большого размера Загрузить разницу

@ -5,7 +5,7 @@
#include "histogram.h"
using namespace std;
static
void
find_minmax(vector<double> numbers, double &min, double &max)
{
min = numbers[0];

Двоичные данные
histogram.o

Двоичный файл не отображается.

@ -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

Двоичные данные
main.o

Двоичный файл не отображается.

@ -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>
Загрузка…
Отмена
Сохранить