Skip to content

Commit 991ec6c

Browse files
Changes done as per canonical-data.json
1 parent d96f651 commit 991ec6c

File tree

10 files changed

+152
-151
lines changed

10 files changed

+152
-151
lines changed

exercises/practice/dnd-character/src/test/java/DnDCharacterTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,112 +11,112 @@ public class DnDCharacterTest {
1111
private DnDCharacter dndCharacter = new DnDCharacter();
1212

1313
@Test
14-
@DisplayName("Ability modifier for score 3 is -4")
14+
@DisplayName("ability modifier for score 3 is -4")
1515
public void testAbilityModifierForScore3IsNegative4() {
1616
assertThat(dndCharacter.modifier(3)).isEqualTo(-4);
1717
}
1818

1919
@Disabled("Remove to run test")
2020
@Test
21-
@DisplayName("Ability modifier for score 4 is -3")
21+
@DisplayName("ability modifier for score 4 is -3")
2222
public void testAbilityModifierForScore4IsNegative3() {
2323
assertThat(dndCharacter.modifier(4)).isEqualTo(-3);
2424
}
2525

2626
@Disabled("Remove to run test")
2727
@Test
28-
@DisplayName("Ability modifier for score 5 is -3")
28+
@DisplayName("ability modifier for score 5 is -3")
2929
public void testAbilityModifierForScore5IsNegative3() {
3030
assertThat(dndCharacter.modifier(5)).isEqualTo(-3);
3131
}
3232

3333
@Disabled("Remove to run test")
3434
@Test
35-
@DisplayName("Ability modifier for score 6 is -2")
35+
@DisplayName("ability modifier for score 6 is -2")
3636
public void testAbilityModifierForScore6IsNegative2() {
3737
assertThat(dndCharacter.modifier(6)).isEqualTo(-2);
3838
}
3939

4040
@Disabled("Remove to run test")
4141
@Test
42-
@DisplayName("Ability modifier for score 7 is -2")
42+
@DisplayName("ability modifier for score 7 is -2")
4343
public void testAbilityModifierForScore7IsNegative2() {
4444
assertThat(dndCharacter.modifier(7)).isEqualTo(-2);
4545
}
4646

4747
@Disabled("Remove to run test")
4848
@Test
49-
@DisplayName("Ability modifier for score 8 is -1")
49+
@DisplayName("ability modifier for score 8 is -1")
5050
public void testAbilityModifierForScore8IsNegative1() {
5151
assertThat(dndCharacter.modifier(8)).isEqualTo(-1);
5252
}
5353

5454
@Disabled("Remove to run test")
5555
@Test
56-
@DisplayName("Ability modifier for score 9 is -1")
56+
@DisplayName("ability modifier for score 9 is -1")
5757
public void testAbilityModifierForScore9IsNegative1() {
5858
assertThat(dndCharacter.modifier(9)).isEqualTo(-1);
5959
}
6060

6161
@Disabled("Remove to run test")
6262
@Test
63-
@DisplayName("Ability modifier for score 10 is 0")
63+
@DisplayName("ability modifier for score 10 is 0")
6464
public void testAbilityModifierForScore10Is0() {
6565
assertThat(dndCharacter.modifier(10)).isEqualTo(0);
6666
}
6767

6868
@Disabled("Remove to run test")
6969
@Test
70-
@DisplayName("Ability modifier for score 11 is 0")
70+
@DisplayName("ability modifier for score 11 is 0")
7171
public void testAbilityModifierForScore11Is0() {
7272
assertThat(dndCharacter.modifier(11)).isEqualTo(0);
7373
}
7474

7575
@Disabled("Remove to run test")
7676
@Test
77-
@DisplayName("Ability modifier for score 12 is 1")
77+
@DisplayName("ability modifier for score 12 is +1")
7878
public void testAbilityModifierForScore12Is1() {
7979
assertThat(dndCharacter.modifier(12)).isEqualTo(1);
8080
}
8181

8282
@Disabled("Remove to run test")
8383
@Test
84-
@DisplayName("Ability modifier for score 13 is 1")
84+
@DisplayName("ability modifier for score 13 is +1")
8585
public void testAbilityModifierForScore13Is1() {
8686
assertThat(dndCharacter.modifier(13)).isEqualTo(1);
8787
}
8888

8989
@Disabled("Remove to run test")
9090
@Test
91-
@DisplayName("Ability modifier for score 14 is 2")
91+
@DisplayName("ability modifier for score 14 is +2")
9292
public void testAbilityModifierForScore14Is2() {
9393
assertThat(dndCharacter.modifier(14)).isEqualTo(2);
9494
}
9595

9696
@Disabled("Remove to run test")
9797
@Test
98-
@DisplayName("Ability modifier for score 15 is 2")
98+
@DisplayName("ability modifier for score 15 is +2")
9999
public void testAbilityModifierForScore15Is2() {
100100
assertThat(dndCharacter.modifier(15)).isEqualTo(2);
101101
}
102102

103103
@Disabled("Remove to run test")
104104
@Test
105-
@DisplayName("Ability modifier for score 16 is 3")
105+
@DisplayName("ability modifier for score 16 is +3")
106106
public void testAbilityModifierForScore16Is3() {
107107
assertThat(dndCharacter.modifier(16)).isEqualTo(3);
108108
}
109109

110110
@Disabled("Remove to run test")
111111
@Test
112-
@DisplayName("Ability modifier for score 17 is 3")
112+
@DisplayName("ability modifier for score 17 is +3")
113113
public void testAbilityModifierForScore17Is3() {
114114
assertThat(dndCharacter.modifier(17)).isEqualTo(3);
115115
}
116116

117117
@Disabled("Remove to run test")
118118
@Test
119-
@DisplayName("Ability modifier for score 18 is 4")
119+
@DisplayName("ability modifier for score 18 is +4")
120120
public void testAbilityModifierForScore18Is4() {
121121
assertThat(dndCharacter.modifier(18)).isEqualTo(4);
122122
}
@@ -190,7 +190,7 @@ public void testAbilityCalculationDoesNotChangeInputScores() {
190190

191191
@Disabled("Remove to run test")
192192
@Test
193-
@DisplayName("Random character attributes are within valid range")
193+
@DisplayName("random character is valid")
194194
public void testRandomCharacterIsValid() {
195195
for (int i = 0; i < 1000; i++) {
196196
DnDCharacter character = new DnDCharacter();
@@ -206,7 +206,7 @@ public void testRandomCharacterIsValid() {
206206

207207
@Disabled("Remove to run test")
208208
@Test
209-
@DisplayName("Each ability value is calculated only once")
209+
@DisplayName("each ability is only calculated once")
210210
public void testEachAbilityIsOnlyCalculatedOnce() {
211211
assertThat(dndCharacter.getStrength()).isEqualTo(dndCharacter.getStrength());
212212
assertThat(dndCharacter.getDexterity()).isEqualTo(dndCharacter.getDexterity());

exercises/practice/hangman/src/test/java/HangmanTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import io.reactivex.Observable;
22
import io.reactivex.ObservableEmitter;
33
import io.reactivex.disposables.Disposable;
4+
45
import org.junit.jupiter.api.BeforeEach;
56
import org.junit.jupiter.api.Disabled;
67
import org.junit.jupiter.api.DisplayName;

exercises/practice/markdown/src/test/java/MarkdownTest.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void setup() {
1515
}
1616

1717
@Test
18-
@DisplayName("Plain text is wrapped in a paragraph")
18+
@DisplayName("parses normal text as a paragraph")
1919
public void normalTextAsAParagraph() {
2020
String input = "This will be a paragraph";
2121
String expected = "<p>This will be a paragraph</p>";
@@ -25,7 +25,7 @@ public void normalTextAsAParagraph() {
2525

2626
@Disabled("Remove to run test")
2727
@Test
28-
@DisplayName("Single underscore wraps text in <em> tags")
28+
@DisplayName("parsing italics")
2929
public void italics() {
3030
String input = "_This will be italic_";
3131
String expected = "<p><em>This will be italic</em></p>";
@@ -35,7 +35,7 @@ public void italics() {
3535

3636
@Disabled("Remove to run test")
3737
@Test
38-
@DisplayName("Double underscore wraps text in <strong> tags")
38+
@DisplayName("parsing bold text")
3939
public void boldText() {
4040
String input = "__This will be bold__";
4141
String expected = "<p><strong>This will be bold</strong></p>";
@@ -45,7 +45,7 @@ public void boldText() {
4545

4646
@Disabled("Remove to run test")
4747
@Test
48-
@DisplayName("Mixed italics and bold inline formatting")
48+
@DisplayName("mixed normal, italics and bold text")
4949
public void normalItalicsAndBoldText() {
5050
String input = "This will _be_ __mixed__";
5151
String expected = "<p>This will <em>be</em> <strong>mixed</strong></p>";
@@ -55,7 +55,7 @@ public void normalItalicsAndBoldText() {
5555

5656
@Disabled("Remove to run test")
5757
@Test
58-
@DisplayName("H1 header conversion")
58+
@DisplayName("with h1 header level")
5959
public void withH1HeaderLevel() {
6060
String input = "# This will be an h1";
6161
String expected = "<h1>This will be an h1</h1>";
@@ -65,7 +65,7 @@ public void withH1HeaderLevel() {
6565

6666
@Disabled("Remove to run test")
6767
@Test
68-
@DisplayName("H2 header conversion")
68+
@DisplayName("with h2 header level")
6969
public void withH2HeaderLevel() {
7070
String input = "## This will be an h2";
7171
String expected = "<h2>This will be an h2</h2>";
@@ -75,7 +75,7 @@ public void withH2HeaderLevel() {
7575

7676
@Disabled("Remove to run test")
7777
@Test
78-
@DisplayName("H3 header conversion")
78+
@DisplayName("with h3 header level")
7979
public void withH3HeaderLevel() {
8080
String input = "### This will be an h3";
8181
String expected = "<h3>This will be an h3</h3>";
@@ -85,7 +85,7 @@ public void withH3HeaderLevel() {
8585

8686
@Disabled("Remove to run test")
8787
@Test
88-
@DisplayName("H4 header conversion")
88+
@DisplayName("with h4 header level")
8989
public void withH4HeaderLevel() {
9090
String input = "#### This will be an h4";
9191
String expected = "<h4>This will be an h4</h4>";
@@ -95,7 +95,7 @@ public void withH4HeaderLevel() {
9595

9696
@Disabled("Remove to run test")
9797
@Test
98-
@DisplayName("H5 header conversion")
98+
@DisplayName("with h5 header level")
9999
public void withH5HeaderLevel() {
100100
String input = "##### This will be an h5";
101101
String expected = "<h5>This will be an h5</h5>";
@@ -105,7 +105,7 @@ public void withH5HeaderLevel() {
105105

106106
@Disabled("Remove to run test")
107107
@Test
108-
@DisplayName("H6 header conversion")
108+
@DisplayName("with h6 header level")
109109
public void withH6HeaderLevel() {
110110
String input = "###### This will be an h6";
111111
String expected = "<h6>This will be an h6</h6>";
@@ -115,7 +115,7 @@ public void withH6HeaderLevel() {
115115

116116
@Disabled("Remove to run test")
117117
@Test
118-
@DisplayName("Line starting with 7 hashes is a paragraph")
118+
@DisplayName("h7 header level is a paragraph")
119119
public void h7HeaderLevelIsAParagraph() {
120120
String input = "####### This will not be an h7";
121121
String expected = "<p>####### This will not be an h7</p>";
@@ -125,7 +125,7 @@ public void h7HeaderLevelIsAParagraph() {
125125

126126
@Disabled("Remove to run test")
127127
@Test
128-
@DisplayName("Consecutive lines starting with * become an unordered list")
128+
@DisplayName("unordered lists")
129129
public void unorderedLists() {
130130
String input = "* Item 1\n* Item 2";
131131
String expected = "<ul><li>Item 1</li><li>Item 2</li></ul>";
@@ -135,7 +135,7 @@ public void unorderedLists() {
135135

136136
@Disabled("Remove to run test")
137137
@Test
138-
@DisplayName("Combined header and list formatting")
138+
@DisplayName("With a little bit of everything")
139139
public void aLittleBitOfEverything() {
140140
String input = "# Header!\n* __Bold Item__\n* _Italic Item_";
141141
String expected = "<h1>Header!</h1><ul><li><strong>Bold Item</strong></li><li><em>Italic Item</em></li></ul>";
@@ -145,7 +145,7 @@ public void aLittleBitOfEverything() {
145145

146146
@Disabled("Remove to run test")
147147
@Test
148-
@DisplayName("Markdown symbols inside headers are treated as text")
148+
@DisplayName("with markdown symbols in the header text that should not be interpreted")
149149
public void markdownSymbolsInTheHeaderShouldNotBeInterpreted() {
150150
String input = "# This is a header with # and * in the text";
151151
String expected = "<h1>This is a header with # and * in the text</h1>";
@@ -155,7 +155,7 @@ public void markdownSymbolsInTheHeaderShouldNotBeInterpreted() {
155155

156156
@Disabled("Remove to run test")
157157
@Test
158-
@DisplayName("Markdown symbols inside list items are treated as text")
158+
@DisplayName("with markdown symbols in the list item text that should not be interpreted")
159159
public void markdownSymbolsInTheListItemTextShouldNotBeInterpreted() {
160160
String input = "* Item 1 with a # in the text\n* Item 2 with * in the text";
161161
String expected = "<ul><li>Item 1 with a # in the text</li><li>Item 2 with * in the text</li></ul>";
@@ -165,7 +165,7 @@ public void markdownSymbolsInTheListItemTextShouldNotBeInterpreted() {
165165

166166
@Disabled("Remove to run test")
167167
@Test
168-
@DisplayName("Markdown symbols inside paragraphs are treated as text")
168+
@DisplayName("with markdown symbols in the paragraph text that should not be interpreted")
169169
public void markdownSymbolsInTheParagraphTextShouldNotBeInterpreted() {
170170
String input = "This is a paragraph with # and * in the text";
171171
String expected = "<p>This is a paragraph with # and * in the text</p>";
@@ -175,7 +175,7 @@ public void markdownSymbolsInTheParagraphTextShouldNotBeInterpreted() {
175175

176176
@Disabled("Remove to run test")
177177
@Test
178-
@DisplayName("Lists close properly when surrounded by other blocks")
178+
@DisplayName("unordered lists close properly with preceding and following lines")
179179
public void markdownUnorderedListsCloseProperlyWithPrecedingAndFollowingLines() {
180180
String input = "# Start a list\n* Item 1\n* Item 2\nEnd a list";
181181
String expected = "<h1>Start a list</h1><ul><li>Item 1</li><li>Item 2</li></ul><p>End a list</p>";

0 commit comments

Comments
 (0)