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 type of a Move to something else then 0, 1, 2 or 3 Bug. #33

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

Set the type of a Move to something else then 0, 1, 2 or 3 Bug. #33

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:
    • type=6
    • the other parameters can be anything.

Assert:

  • The constructor will handle that the type is not 0, 1, 2 or 3 (because there are only 4 types of moves, written by the javadoc to the Move class. They can 0=Accurate, 1=Wide, 2=Crit and 3=Healing).

Excepting:

  • We got an exception or a warning that we cannot make a new Move with a type of 6.

Actually:

  • We can freely make a new "move" with the type of 6, and we do not get any warning.
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