* init doxygen * fix format * use readme as main file * don't generate LaTeX * automatically use correct project version and update html settings * minify Doxyfile * add documentation * add workflow to publish documentation * remove mac comment * formatting * fix typo * grammar
13 lines
377 B
C++
13 lines
377 B
C++
#include <doctest/doctest.h>
|
|
#include <greeter.h>
|
|
|
|
TEST_CASE("Greeter") {
|
|
using namespace greeter;
|
|
|
|
Greeter greeter("Tests");
|
|
|
|
CHECK(greeter.greet(LanguageCode::EN) == "Hello, Tests!");
|
|
CHECK(greeter.greet(LanguageCode::DE) == "Hallo Tests!");
|
|
CHECK(greeter.greet(LanguageCode::ES) == "¡Hola Tests!");
|
|
CHECK(greeter.greet(LanguageCode::FR) == "Bonjour Tests!");
|
|
}
|