Files

13 lines
314 B
C++
Raw Permalink Normal View History

2026-08-11 17:40:36 +03:00
#include "hello_world.hpp"
#include <gtest/gtest.h>
TEST(HelloWorld, GreetsByName) {
EXPECT_STREQ(fundamentals::greet("Ada"), "Hello, Ada!");
EXPECT_STREQ(fundamentals::greet("Bjarne"), "Hello, Bjarne!");
}
TEST(HelloWorld, ExitSuccessIsZero) {
EXPECT_EQ(fundamentals::program_exit_success(), 0);
}