MyModernCppStarter/test/source/greeter.cpp
Lars Melchior c94580f25c init
2020-04-11 12:31:08 +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) == "Hello, World!");
CHECK(greeter.greet(LanguageCode::ES) == "Hello, World!");
CHECK(greeter.greet(LanguageCode::FR) == "Hello, World!");
}