Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boundary value #200

Open
andyylam opened this issue Nov 28, 2019 · 2 comments
Open

Boundary value #200

andyylam opened this issue Nov 28, 2019 · 2 comments

Comments

@andyylam
Copy link

See highlighted part: why is -4 an invalid boundary value, given that t is valid in range [-5, 99]?

image

@seanlowjk
Copy link

To Test for BVA!

You need to test the boundaries of -5 and 99

Following which, ya needa test values outside the range of -5 to 99.

Given -4 > -5 and falls within the range of -5 to 99, there is no need to test for -4.
On the other hand, -6 < -5, and -6 falls out of the range of valid values. Hence, it is important to test for -6.

The 3 Boundary Areas I assume for int t are

  1. t < -5
  2. -5 <= t <= 99
  3. t > 99

@damithc
Copy link
Collaborator

damithc commented Nov 28, 2019

To Test for BVA!

You need to test the boundaries of -5 and 99

Following which, ya needa test values outside the range of -5 to 99.

Given -4 > -5 and falls within the range of -5 to 99, there is no need to test for -4.
On the other hand, -6 < -5, and -6 falls out of the range of valid values. Hence, it is important to test for -6.

That's correct @seanlowjk 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants