exercism / java

Exercism exercises in Java.
https://exercism.org/tracks/java
MIT License
689 stars 671 forks source link

dnd-character: Add test case for ability with lowest number occurring twice #2792

Closed kahgoh closed 4 months ago

kahgoh commented 5 months ago

pull request

During a mentoring session, I noticed a solution that passed all the existing tests, but would have failed to meet the following example from the instructions. I wonder if it be worth adding a test for it?

3, 5, 3, 4: You discard the 3 and sum 5 + 3 + 4 = 12, which you assign to wisdom.

Note, I have put the PR here instead of the problem specifications because I noticed the Java track already has some tests around the ability method and the only ability test in the spec seems more vague. I think the ability tests we have might be Java specific?


Reviewer Resources:

Track Policies

github-actions[bot] commented 5 months ago

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

manumafe98 commented 5 months ago

Maybe it makes more sense to discuss this directly into an issue? how was the student solving the exercise to not meet with that particular test case?

kahgoh commented 4 months ago

@manumafe98 I've opened up a post in the forums to discuss: https://forum.exercism.org/t/missing-test-case-for-ability-with-lowest-number-occurring-twice-in-dnd-character/11097

manumafe98 commented 4 months ago

@manumafe98 I've opened up a post in the forums to discuss: https://forum.exercism.org/t/missing-test-case-for-ability-with-lowest-number-occurring-twice-in-dnd-character/11097

Great! well we will see when it gets some answers!