mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2026-02-04 06:42:02 +00:00
feat: simple test example
This commit is contained in:
18
src/test.cpp
18
src/test.cpp
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user