Test Case for Integer Addition

Write test cases for X+Y=20; Where X,Y are integers

Showing Answers 1 - 12 of 12 Answers

prashant

  • Sep 28th, 2015
 

Case 1: Enter the value of x as 0 and value of y as 20 and check the result.
Case 2: Enter the value of y as 0 and value of x as 20 and check the result.
Case 3: Enter the value as negative of both x and y and check the result, it would fail.
Case 4: Enter the equal values of x and y and check the result.

  Was this answer useful?  Yes

parul

  • Oct 6th, 2015
 

- Enter X as 0 Y as integer resukt should be integer
- Enter Y as 0 X as integer result should be integer
- Enter X as negative number and Y as positive number >0 result should be integer.
- Enter x as positive number and Y as negative number > 0 result should be integer.
- Enter x and y as negative numbers >0, result should be integer.

  Was this answer useful?  Yes

parularora

  • Oct 6th, 2015
 

- Enter X as 0 Y as integer result should be integer
- Enter Y as 0 X as integer result should be integer
- Enter X as negative number and Y as positive number > 0 result should be integer.
- Enter x as positive number and Y as negative number > 0 result should be integer.
- Enter x and y as negative numbers >0, result should be integer.

  Was this answer useful?  Yes

Manhad khan Mohammed

  • Feb 21st, 2016
 

Can Anyone specify with some values.
let x=0, y=-7 expected =-7 ... something like this

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions