- #1
Hooke's Law
- 30
- 0
Homework Statement
Pseudocode:
if ( x is greater than y )
then return "hello"
else if ( x is less than y + 3 )
then return "bye"
What is the least number of different test cases that I would use to test this coude(eg. What would you use as values for x and y to fully test this piece of code?
The Attempt at a Solution
I'm thinking [ x = 0 ; y = 0 ] & [ x = 4 ; y = 0 ] , . But I'm confused with what's the "least number of different test cases".
thanks