Triangle

De Software testing
Ir para: navegação, pesquisa

Create a test set for the following application:

  • The software read three integer values that represents the edges of a triangle. For those values, the software should write if the triangle is isosceles, scalene, or equilateral. The input values should obey a condition: the sum of two edges must be bigger than the third edge.

Hints:

  • There is a test case for a valid scalene triangle?
  • There is a test case for a valid isosceles triangle?
  • There is a test case for a valid equilateral triangle?
  • There is at least three test cases for valid isosceles triangles (with the permutation of the same values)?
  • There is a test case with a value of zero?
  • There is a test case with a negative value?
  • There is a test case which the sum of two edges is equal to the third edge?
  • There is a test case which the sum of two edges is equal to the third edge for each values permutation?
  • There is a test case which the sum of two edges is less than the third edge?
  • There is a test case which the sum of two edges is less than the third edge for each values permutation?
  • There is a test case which all the values are zero?
  • There is a test case for non-integer values?
  • There is a test case with insufficient values (e.g., 2 instead of 3)?
  • For every test case, have you specified the expected output for the specified input?