Initial Course
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user