MyModernCppStarter/test/source/greeter.cpp
Lars Melchior 032e506c12
Doxygen support (#43)
* 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
2020-06-03 14:31:53 +02:00

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