Automated Unit Testing using Google Test (gtest)

Опубликовано: 24 Июль 2026
на канале: Faiza Raed
13
0

This project demonstrates automated unit testing using Google Test framework in C++.

I created three functions:
fnSum, fnDiv, and fnIsEven.

Then I created automated test cases using Google Test.

EXPECT_EQ is used to test equality,
EXPECT_NEAR is used for decimal values,
and EXPECT_TRUE is used for boolean values.

Finally, I run all tests and they pass successfully.