Skip to content
Snippets Groups Projects
Commit 351e3c8a authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix unit test failure

Change-Id: I6814986f04a0cdf91837cfa60c7eca81a687236b
parent ea6c2e33
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,8 @@ public class SuggestTests extends SuggestTestsBase {
* Tests to make sure that zero frequency words are not suggested as completions.
*/
public void testZeroFrequencySuggestionsNegative() {
assertNull(mHelper.getSuggestIndex("yike", "yikes"));
assertNull(mHelper.getSuggestIndex("what", "whatcha"));
assertTrue(mHelper.getSuggestIndex("yike", "yikes") < 0);
assertTrue(mHelper.getSuggestIndex("what", "whatcha") < 0);
}
/**
......@@ -127,7 +127,7 @@ public class SuggestTests extends SuggestTestsBase {
* Also such word is not considered auto correction, in some cases.
*/
public void testTooLargeEditDistance() {
assertNull(mHelper.getSuggestIndex("sniyr", "about"));
assertTrue(mHelper.getSuggestIndex("sniyr", "about") < 0);
// TODO: The following test fails.
// notSuggested("the", mHelper.getAutoCorrection("rjw"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment