Сравнить коммиты
Ничего общего в коммитах. '68dc612a91336cb2aa22b59398431a4a63734479' и 'd94b3e17d938a5911ad4d36df64a415cc19525fc' имеют совершенно разные истории.
68dc612a91
...
d94b3e17d9
@ -1,10 +0,0 @@
|
|||||||
/bin
|
|
||||||
/obj
|
|
||||||
/lab01.depend
|
|
||||||
/lab01.layout
|
|
||||||
/main.exe
|
|
||||||
/main.o
|
|
||||||
/unittest.depend
|
|
||||||
/unittest.layout
|
|
||||||
/unittest1.depend
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
bool
|
void
|
||||||
find_minmax(const std::vector<double>& numbers, double& min1, double& max1);
|
find_minmax(const std::vector<double>& numbers, double& min1, double& max1);
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
void
|
|
||||||
color_find(double bin, int maxb, int& color);
|
|
@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
|
||||||
<CodeBlocks_project_file>
|
|
||||||
<FileVersion major="1" minor="6" />
|
|
||||||
<Project>
|
|
||||||
<Option title="unittest1" />
|
|
||||||
<Option pch_mode="2" />
|
|
||||||
<Option compiler="gfortran" />
|
|
||||||
<Build>
|
|
||||||
<Target title="Debug">
|
|
||||||
<Option output="bin/Debug/unittest1" prefix_auto="1" extension_auto="1" />
|
|
||||||
<Option object_output="obj/Debug/" />
|
|
||||||
<Option type="1" />
|
|
||||||
<Option compiler="gfortran" />
|
|
||||||
<Compiler>
|
|
||||||
<Add option="-g" />
|
|
||||||
</Compiler>
|
|
||||||
</Target>
|
|
||||||
<Target title="Release">
|
|
||||||
<Option output="bin/Release/unittest1" prefix_auto="1" extension_auto="1" />
|
|
||||||
<Option object_output="obj/Release/" />
|
|
||||||
<Option type="1" />
|
|
||||||
<Option compiler="gfortran" />
|
|
||||||
<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>
|
|
@ -1,28 +0,0 @@
|
|||||||
#define DOCTEST_CONFIG_NO_MULTITHREADING
|
|
||||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
||||||
#include "doctest.h"
|
|
||||||
#include "svg_internal.h"
|
|
||||||
|
|
||||||
TEST_CASE("color standart") {
|
|
||||||
int color = 0;
|
|
||||||
color_find(1, 5, color);
|
|
||||||
CHECK(color == 8);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("color equal") {
|
|
||||||
int color = 0;
|
|
||||||
color_find(5, 5, color);
|
|
||||||
CHECK(color == 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("color sr") {
|
|
||||||
int color = 0;
|
|
||||||
color_find(3, 5, color);
|
|
||||||
CHECK(color == 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("color nonsr") {
|
|
||||||
int color = 0;
|
|
||||||
color_find(7, 5, color);
|
|
||||||
CHECK(color == 9);
|
|
||||||
}
|
|
Загрузка…
Ссылка в новой задаче