feat: simple test example

This commit is contained in:
Jorens Shtekels 2024-03-12 22:43:28 +02:00
parent b2e2e44599
commit bba9ddc04a

View File

@ -1,17 +1,5 @@
#include "lib.hh"
#include "prep/prep.hh"
#include <gtest/gtest.h>
// TEST(TestSuiteName, testName) {...}
/* TEST(ProgramTest, testFunction) {
EXPECT_EQ(functionToTest(4), 8);
} */
/* TEST(ProgramTest, testFunctionShouldFail) {
EXPECT_EQ(functionToTest(4), 12);
} */
/* TEST(PrepTest, testAddFunc) {
EXPECT_EQ(add(4, 2), 6);
} */
TEST(ProgramTest, testFunction) {
EXPECT_EQ(8, 8);
}