The program reads three integer values from a file. The three values are interpreted as representing the lengths of the sides of a triangle. The program prints a message that states whether the triangle is scalene (all sides are different lengths), isosceles (two sides are the same length), or equilateral (all three sides are the same length).
Design a set of test cases that you feel would adequately test this program. Include anything that you would consider if this were a “real” (important) application and write the tests so that someone else could run them.
There is no merit in someone else writing the test cases for you: this is an opportunity to think, propose your take on it, and then ask if anyone wants to comment. Let me give you some hints:
1. What is the largest number of tests that you might perform that will test all the possible combinations of sides to be adjudicated into the categories you named?
2. What is the optimum number of tests that you might perform (test all validations with the least number of tests)?
The actual test case itself would be three data inputs, and the validation would be one of the categories to be returned, isn't it? So, with that, you should be able to establish a generic test case, and then supply the 3 input values and 1 result value as a supplementary table. Try it and share it with the rest of us.
Please don't confuse a brief and concise answer that gets you to the information requested expediently, with anything else. CRM involves quick business-like answers that get you to what you need in a hurry. I'm glad to help!