diff options
author | 2011-02-20 14:35:45 +0900 | |
---|---|---|
committer | 2011-02-20 14:35:45 +0900 | |
commit | 351e3c8ae01eb3ed7db00cd9f7ced15cc2cb1323 (patch) | |
tree | b3521cb8303404fb3fc6413ba42676bc7d7e8c98 /tests/src | |
parent | ea6c2e3350f21d1fc9e9866dbe13d74713d548a9 (diff) | |
download | latinime-351e3c8ae01eb3ed7db00cd9f7ced15cc2cb1323.tar.gz latinime-351e3c8ae01eb3ed7db00cd9f7ced15cc2cb1323.tar.xz latinime-351e3c8ae01eb3ed7db00cd9f7ced15cc2cb1323.zip |
Fix unit test failure
Change-Id: I6814986f04a0cdf91837cfa60c7eca81a687236b
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestTests.java b/tests/src/com/android/inputmethod/latin/SuggestTests.java index 38a6bf464..372e940f5 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestTests.java +++ b/tests/src/com/android/inputmethod/latin/SuggestTests.java @@ -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")); } |