revert code: добавлены исправленные модульные тесты для персонального варианта
main
StepanovAV 12 месяцев назад
Родитель 1a3ea0432c
Сommit ee3bd74f74

@ -1,40 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="personal_unittest" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/personal_unittest" 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/personal_unittest" 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>
<Unit filename="doctest.h" />
<Unit filename="personal_unittest.cpp" />
<Unit filename="styled_text_func_internal.h" />
<Unit filename="svg.cpp" />
<Extensions />
</Project>
</CodeBlocks_project_file>

@ -1,18 +0,0 @@
#define DOCTEST_CONFIG_NO_MULTITHREADING
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "styled_text_func_internal.h"
#include <iostream>
TEST_CASE("Some mistakes in words") {
std::string text_style = styled_text_func ();
CHECK(text_style == "underline");
}
TEST_CASE("Not using any style") {
std::string text_style = styled_text_func ();
CHECK(text_style == "none");
}
TEST_CASE("Using 'none' as style after answering 'Yes'") {
std::string text_style = styled_text_func ();
CHECK(text_style == "none");
}

@ -1,5 +0,0 @@
#pragma once
#include <iostream>
std::string
styled_text_func ();
Загрузка…
Отмена
Сохранить