1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00
ModernCppStarter/test/source/greeter.cpp
Lars Melchior 9a5f50f95c fix tests
2020-04-11 12:37:35 +02:00

13 lines
377 B
C++

#include <doctest/doctest.h>
#include <greeter.h>
TEST_CASE("Greeter") {
using namespace greeter;
Greeter greeter("World");
CHECK(greeter.greet(LanguageCode::EN) == "Hello, World!");
CHECK(greeter.greet(LanguageCode::DE) == "Hallo World!");
CHECK(greeter.greet(LanguageCode::ES) == "¡Hola World!");
CHECK(greeter.greet(LanguageCode::FR) == "Bonjour World!");
}