Consider a program for classification of a triangle. Its input is a triple of positive integers (say

Question:

Consider a program for classification of a triangle. Its input is a triple of positive integers

(say

a, b and

c) from interval [1, 100]. The output may be one of the following:

[Scalene, Isosceles, Equilateral, Not a triangle, invalid inputs]

(a) Draw a program graph, DD path graph and write test cases for every independent path.

(b) Find all du-paths and identify those du-paths that are not dc paths. Write test cases for every du-path.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Software Testing

ISBN: 9781107012967

1st Edition

Authors: Yogesh Singh

Question Posted: