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 damage to 0 or 1 while creating a new move from Move Class Bug. #32

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

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:
    • damage=0
    • the other parameters can be anything.
  • Store this instance in a variable and call it as "move1".
  • Check if the min/max damage is anything else then 0 and 1.

Assert:

  • The min/max damage can not be 0 or 1 written by the javadoc to the Move constructor.

Excepting:

  • We got an exception or something that warn us that we cannot create a new Move with damage=0 or damage=1.

Actually:

  • We can freely make a new "move" with damage=0 and damage=1 without any problem, even if the javadoc said that we cannot do it.

bug6 1
bug6 2

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