Amazon Interview Question
Software Engineer in Tests[int sum(int ,int)]
1. check with providing two valid integer values
2. Check with providing two float values (It shall take only the integer part)
3. Check with negative inputs.
4. Check for inputs greater than 2
5. Check for inputs less than 2
6. Check for return type integer
7. Make sure that the returned value is float or char or string and check how program reacts
8. Check for integer array instead of no
9. Check for negative values
10. Check for boundary value, edge cases
11. Check for negative and postive integer
Apart from the normal ones of passing positive, negative and zeros, passing very large integers so that the sum may require a larger memory that that assigned to int data type. Any any one think of some other test cases?
- Anonymous November 03, 2009