Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

23 строки
681 B
C++

#define DOCTEST_CONFIG_NO_MULTITHREADING
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "styled_text_func_internal.h"
#include <iostream>
#include <fstream>
TEST_CASE("Some mistakes in words") {
std::string text_style = styled_text_func ();
std::ifstream f ("Tests.txt");
CHECK(text_style == "underline");
}
TEST_CASE("Not using any style") {
std::string text_style = styled_text_func ();
std::ifstream f ("Tests.txt");
CHECK(text_style == "none");
}
TEST_CASE("Using 'none' as style after answering 'Yes'") {
std::string text_style = styled_text_func ();
std::ifstream f ("Tests.txt");
CHECK(text_style == "none");
}