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