12.07.2015 Views

Software Quality Assurance - Software Engineering: Dependability

Software Quality Assurance - Software Engineering: Dependability

Software Quality Assurance - Software Engineering: Dependability

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Problem 4:Control Flow TestingGiven is a function ALL_POSITIVE implemented in Java, which examines all elements of aone-dimensional field of simple integers to see whether these are bigger than 0.boolean ALL_POSITIVE(int[] array) {boolean result;int i,len,tmp;len = array.length;i=0;result=true;while (i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!