mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
feat: simple test example
This commit is contained in:
parent
b2e2e44599
commit
bba9ddc04a
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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user