Skip to content

Commit ecdca41

Browse files
authored
Improved task 843.
1 parent 2a90fde commit ecdca41

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/test/java/g0801_0900/s0843_guess_the_word/SolutionTest.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ class SolutionTest {
99
@Test
1010
void findSecretWord() {
1111
int[] numCalls = new int[] {0};
12+
doFindSecretWord(numCalls);
13+
assertThat(numCalls[0] > 0, equalTo(true));
14+
}
15+
16+
@Test
17+
void findSecretWord2() {
18+
int[] numCalls = new int[] {0};
19+
doFindSecretWord(numCalls);
20+
assertThat(numCalls[0] > 0, equalTo(true));
21+
}
22+
23+
@Test
24+
void findSecretWord3() {
25+
int[] numCalls = new int[] {0};
26+
doFindSecretWord(numCalls);
27+
assertThat(numCalls[0] > 0, equalTo(true));
28+
}
29+
30+
private void doFindSecretWord(int[] numCalls) {
1231
new Solution()
1332
.findSecretWord(
1433
new String[] {"acckzz", "ccbazz", "eiowzz", "abcczz"},
@@ -34,6 +53,5 @@ void findSecretWord() {
3453
}
3554
return result;
3655
});
37-
assertThat(numCalls[0] > 0, equalTo(true));
3856
}
3957
}

0 commit comments

Comments
 (0)