-
-
Notifications
You must be signed in to change notification settings - Fork 752
Issue #2971 display names #3055
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
jagdish-15
merged 25 commits into
exercism:main
from
manjarekarsudip:issue-2971-display-names
Nov 23, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
29f2d68
Added DisplayName to DnDCharacterTest
manjarekarsudip cf13ec2
Added DisplayName to SimpleLinkedListTest
manjarekarsudip 1ec5bfa
Added DisplayName to RobotTest
manjarekarsudip abeab3c
Added DisplayName to PokerTest
manjarekarsudip 240a2d2
Added DisplayName to PiecingItTogetherTest
manjarekarsudip b78d58c
Added DisplayName to PhoneNumberTest
manjarekarsudip 8947790
Added DisplayName to NaturalNumberTest
manjarekarsudip d742b56
Added DisplayName to PascalsTriangleGeneratorTest
manjarekarsudip 0911db6
Added DisplayName to ParallelLetterFrequencyTest
manjarekarsudip 3263b85
Added DisplayName to MazeGeneratorTest
manjarekarsudip b00d461
Added DisplayName to ErrorHandlingTest
manjarekarsudip 4b9f11a
Added DisplayName to BracketCheckerTest
manjarekarsudip caa9560
Added DisplayName to HangmanTest
manjarekarsudip d96f651
Added DisplayName to MarkdownTest
manjarekarsudip 991ec6c
Changes done as per canonical-data.json
manjarekarsudip 7b1165b
Merge branch 'main' into issue-2971-display-names
manjarekarsudip b382016
Merge branch 'main' into issue-2971-display-names
manjarekarsudip a51cf75
Add suggestion to ErrorHandlingTest
manjarekarsudip 5f39489
Add suggestion to HangmanTest
manjarekarsudip 44618f2
Add suggestion to MazeGeneratorTest
manjarekarsudip 37981c3
Add suggestion to ParallelLetterFrequencyTest
manjarekarsudip 6db2931
Add suggestion to RobotTest
manjarekarsudip 9805fec
Add suggestion to SimpleLinkedListTest
manjarekarsudip 311de45
Merge remote-tracking branch 'origin/issue-2971-display-names' into i…
manjarekarsudip 40302ea
Changing orders of tests to keep similar tests together
jagdish-15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,8 +1,10 @@ | ||||||||||||
| import io.reactivex.Observable; | ||||||||||||
| import io.reactivex.ObservableEmitter; | ||||||||||||
| import io.reactivex.disposables.Disposable; | ||||||||||||
|
|
||||||||||||
| import org.junit.jupiter.api.BeforeEach; | ||||||||||||
|
Comment on lines
3
to
5
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||||||
| import org.junit.jupiter.api.Disabled; | ||||||||||||
| import org.junit.jupiter.api.DisplayName; | ||||||||||||
| import org.junit.jupiter.api.Test; | ||||||||||||
|
|
||||||||||||
| import java.util.ArrayList; | ||||||||||||
|
|
@@ -22,6 +24,7 @@ public void init() { | |||||||||||
| } | ||||||||||||
|
|
||||||||||||
| @Test | ||||||||||||
| @DisplayName("Initial game state is set correctly") | ||||||||||||
| public void initialization() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -39,6 +42,7 @@ public void initialization() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("First correct guess updates discovered and guess lists") | ||||||||||||
| public void firstGuess() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -54,6 +58,7 @@ public void firstGuess() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("First incorrect guess registers a miss and adds a part") | ||||||||||||
| public void firstMiss() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -69,6 +74,7 @@ public void firstMiss() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Game in progress accumulates guesses, misses and parts correctly") | ||||||||||||
| public void gameInProgress() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -84,6 +90,7 @@ public void gameInProgress() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Winning the game results in WIN status") | ||||||||||||
| public void wonGame() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -97,6 +104,7 @@ public void wonGame() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Losing the game results in LOSS status") | ||||||||||||
| public void lostGame() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -118,6 +126,7 @@ public void lostGame() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Handles consecutive games correctly with ordered emissions") | ||||||||||||
| public void consecutiveGames() { | ||||||||||||
| // This test setup is more complex because we have to order the emission of values in the | ||||||||||||
| // different observers. | ||||||||||||
|
|
@@ -189,6 +198,7 @@ Observable createLetterObservable(ObservableEmitter[] emitters, Runnable emit) { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Cannot play the same guess twice") | ||||||||||||
| public void cannotPlayAGuessTwice() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
@@ -201,6 +211,7 @@ public void cannotPlayAGuessTwice() { | |||||||||||
|
|
||||||||||||
| @Disabled("Remove to run test") | ||||||||||||
| @Test | ||||||||||||
| @DisplayName("Cannot play the same miss twice") | ||||||||||||
| public void cannotPlayAMissTwice() { | ||||||||||||
| Observable<Output> result = hangman.play( | ||||||||||||
| Observable.fromArray("secret"), | ||||||||||||
|
|
||||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please keep all of them the same as the descriptions in the
canonical-data.jsonfile?And something to discuss, @kahgoh: only the tests up to this one are fully in sync with the canonical data. There are three more tests after this:
random character is valid,random ability is within range, andeach ability is only calculated once. But there are several extra tests in this file that are not present in the canonical data. Do you think we should keep them or make this file consistent with the canonical data?