Сравнить коммиты
Ничего общего в коммитах. '44949175d54ea3b884989546f85e5b1dfcc8b9b5' и '7b584264f56171f333bd42bc08fe4f081c043d38' имеют совершенно разные истории.
44949175d5
...
7b584264f5
@ -1,8 +0,0 @@
|
||||
#ifndef INPUT_COLORS_INTERNAL_H_INCLUDED
|
||||
#define INPUT_COLORS_INTERNAL_H_INCLUDED
|
||||
|
||||
void
|
||||
input_colors(std::string &colors_stroke, std::string &colors_fill);
|
||||
|
||||
|
||||
#endif // INPUT_COLORS_INTERNAL_H_INCLUDED
|
@ -1,20 +0,0 @@
|
||||
#define DOCTEST_CONFIG_NO_MULTITHREADING
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
#include "doctest.h"
|
||||
#include "input_colors_internal.h"
|
||||
|
||||
TEST_CASE("Mistakes in spelling") {
|
||||
std::string colors_stroke = "black";
|
||||
std::string colors_fill = "green";
|
||||
input_colors(colors_stroke, colors_fill);
|
||||
CHECK(colors_stroke == "yellow");
|
||||
CHECK(colors_fill == "pink");
|
||||
}
|
||||
|
||||
TEST_CASE("The answer is No") {
|
||||
std::string colors_stroke = "black";
|
||||
std::string colors_fill = "green";
|
||||
input_colors(colors_stroke, colors_fill);
|
||||
CHECK(colors_stroke == "black");
|
||||
CHECK(colors_fill == "green");
|
||||
}
|
Загрузка…
Ссылка в новой задаче