Files
cs-lab34-old/lab3_personal/personal_unittest.cpp

19 строки
557 B
C++

#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");
}