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

We can add the Util.SHIELD moveset twice to an instance of a SpecialMoveset class twice, as special moveset Bug #30

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 a SpecialMoveset Class
  • Store this instance in a variable
  • Check if addSMove() method is declared and implemented in the SpecialMoveset Class
  • Call the addSMove() method on the variable (that stores an instance of the SpecialMoveset Class) and call it with a Util.SHIELD as parameter, and do it twice.

Assert:

  • Only one moveset should be stored as special moveset.

Excepting:

  • Only 1 moveset is stored as special moveset in the variable.

Actually:

  • The size of the array is 2, so we stored twice the Util.SHIELD as moveset.

bug4

@wee-zard wee-zard changed the title We can add the Util.SHIED moveset twice to an instance of a SpecialMoveset class twice as special moveset Bug We can add the Util.SHIELD moveset twice to an instance of a SpecialMoveset class twice, as special moveset Bug Dec 2, 2023
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