mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
18 lines
346 B
C++
18 lines
346 B
C++
#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);
|
|
} */
|