Software design: if you are using a logic test, check on either side of the logic test, and also random answers.
is X > 5?
if X is:
4: no
5: no
6: yes
5.00001: no
5.999999: yes
−1: error error error
“tomato”: error error error
taught me to always double check the hypothesis is not just a good fit, but a good enough fit for the purpose. If you never encounter a tomato, or decimals or negative numbers, then the test works fine. if you expect occasional tomatoes, and your test is looking for a positive integer. Maybe its time for a new test.
Software design: if you are using a logic test, check on either side of the logic test, and also random answers.
is X > 5? if X is: 4: no 5: no 6: yes 5.00001: no 5.999999: yes −1: error error error “tomato”: error error error
taught me to always double check the hypothesis is not just a good fit, but a good enough fit for the purpose. If you never encounter a tomato, or decimals or negative numbers, then the test works fine. if you expect occasional tomatoes, and your test is looking for a positive integer. Maybe its time for a new test.