Skip to content

Feat: added Boxer.java and BoxerTest.java to create and test a class object. lesson_16 - JosephCaballero #532

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

Merged
merged 8 commits into from
Nov 23, 2024

Conversation

Josephcabs
Copy link
Contributor

Adds Boxer.java to implement a class object and BoxerTest.java to test the methods in lesson_16 folder

Copy link

@VicenteVigueras VicenteVigueras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please review changes, and we can get this merged.

}

@Test
void testRollSkillSet_testingBasicIsNotWhatIsRolled() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assertion in this test compares the SkillSet to the string "BASIC", but there are two issues:

  • The BoxerStyle enum does not have a BASIC value.
  • You’re comparing an enum to a string, which isn’t valid. If BASIC were an enum value, it should be compared as BoxerStyle.BASIC.

@anthonydmays anthonydmays merged commit 0d8ce16 into code-differently:main Nov 23, 2024
1 check passed
@Josephcabs Josephcabs deleted the feature/lesson_16 branch November 24, 2024 21:15
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

Successfully merging this pull request may close these issues.

3 participants