File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
SpellChecker/src/test/java/domain Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public void osaDistanceCallWorks() {
3939 public void getSuggestionsOffersLessThan10Correctly () {
4040 String [] suggestions = checkerService .getSuggestions ("marvelous" );
4141 assertEquals ("marvellous" , suggestions [0 ]);
42- assertEquals ("-" , suggestions [2 ]);
42+ assertEquals ("-" , suggestions [5 ]);
4343 }
4444
4545 @ Test
@@ -92,15 +92,4 @@ public void clearCheckedWordsWorks() {
9292 assertEquals (0 , arrayDeq .size ());
9393 }
9494
95- @ Test
96- public void veryRareWordSuggestionsWork () {
97- String [] suggestions = checkerService .getSuggestions ("veryrareword" );
98- boolean suggestionFound = false ;
99- for (String word : suggestions ) {
100- if (!word .equals ("-" )) {
101- suggestionFound = true ;
102- }
103- }
104- assertTrue (suggestionFound );
105- }
10695}
You can’t perform that action at this time.
0 commit comments