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

set the min to be greater then the max in the constructor of the Move class Bug #34

Open
wee-zard opened this issue Dec 2, 2023 · 0 comments

Comments

@wee-zard
Copy link

wee-zard commented Dec 2, 2023

Arrange:

  • Configuring the environment (with for example Gradle v3.3).
  • Importing the junit .jar files, so we can run junit test cases.

Act:

  • Making an instance of Move Class with the following parameters:
    • min = 25
    • max = -3
    • the other parameters can be anything.

Assert:

  • The constructor will handle that the min value is greater then then max value.

Excepting:

  • The constructor set the value of the max to be the value of the min (because the min is greater then the max, and wtih this, the value of the min <= then the value of the max.

Actually:

  • The constructor set the value of the min to the value that is stored in the parameters as min and set the value of the max to the value that is stored in the parameters as max.
  • The constructor not handle that the value of the min is greater then the value of the max.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant