





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Test Input Output
Case id Input Expected output Actual output Status 1 10 You are 10 year(s) old 2 -1 Invalid input 3 1 You are 1 year(s) old 4 twenty Invalid input Case 1 to cover the “if” path of the code. Case 2 to cover the “else” path of the code. Case 3 is the extreme/boundary case. Case 4 is the data validating case.
Input Expected output Actual output Status 10 Invert result is 0.1 Invert result is 0.1 passed -10 Invert result is -0.1 Invert result is -0.1 passed 0 Cannot invert 0 Cannot invert 0 passed Twenty Invalid input Cannot invert 0 failed 9999999999999999 Invalid input Wrong unexpected result failed
Black box testing – square test cases Input Expected output Actual output Status 10 Square result is 100 Square result is 100 passed -10 Square result is 100 Square result is 100 passed 0 Square result is 0 Square result is 0 passed Twenty Invalid input Square result is 0 failed 9999999999999999 Invalid input Wrong unexpected output failed