Question: Now is a good time to create a branch. Call this branch TriangleTestingBranch. After you have created that branch, follow these steps: Take a look
Now is a good time to create a branch. Call this branch TriangleTestingBranch. After you have created that branch, follow these steps:
Take a look at includeTriangleh and libTrianglecpp These files have the declaration and definition of a Triangle class. There are bugs in the getPerimeter getArea and getKindmethods Don't fix them!
Create your test.cpp file within the test folder. You will create unit tests that are part of the TriangleTests group.
Create at least three tests that shouldn't pass because of the bugs. In other words, passing these tests would mean the bugs are fixed.
Create an additional test using EXPECTDEATH. This test should validate that the code will terminate if invalid input is provided see the GTest reference for more information
Create at least four more tests that are part of the TriangleTests group. These tests should pass one of them could be EXPECTNOTTHROW to validate that providing three integers will not throw an exception
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
