Loading java/src/com/android/inputmethod/latin/Suggest.java +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ public class Suggest implements Dictionary.WordCallback { /* package for test */ Suggest(final Context context, final File dictionary, final long startOffset, final long length, final Flag[] flagArray, final Locale locale) { initSynchronously(null, DictionaryFactory.createDictionaryForTest(context, dictionary, initSynchronously(context, DictionaryFactory.createDictionaryForTest(context, dictionary, startOffset, length, flagArray), locale); } Loading tests/data/bigramlist.xml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ <bi w1="about" count="3"> <w w2="part" p="117" /> <w w2="business" p="100" /> <w w2="being" p="10" /> <w w2="being" p="90" /> </bi> <bi w1="business" count="1"> <w w2="people" p="100" /> Loading tests/res/raw/test.dict −1.27 KiB (1.49 KiB) File changed.No diff preview for this file type. View original file View changed file tests/src/com/android/inputmethod/latin/SuggestTests.java +3 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,8 @@ public class SuggestTests extends SuggestTestsBase { "part", mHelper.getBigramAutoCorrection("about", "pa")); // TODO: The following test fails. // suggested("single: said", "said", mHelper.getAutoCorrection("sa")); suggested("bigram: from sa[me]", "same", mHelper.getBigramAutoCorrection("from", "sa")); // TODO: The following test fails due to "transpose correction". // suggested("bigram: from sa[me]", // "same", mHelper.getBigramAutoCorrection("from", "sa")); } } Loading
java/src/com/android/inputmethod/latin/Suggest.java +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ public class Suggest implements Dictionary.WordCallback { /* package for test */ Suggest(final Context context, final File dictionary, final long startOffset, final long length, final Flag[] flagArray, final Locale locale) { initSynchronously(null, DictionaryFactory.createDictionaryForTest(context, dictionary, initSynchronously(context, DictionaryFactory.createDictionaryForTest(context, dictionary, startOffset, length, flagArray), locale); } Loading
tests/data/bigramlist.xml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ <bi w1="about" count="3"> <w w2="part" p="117" /> <w w2="business" p="100" /> <w w2="being" p="10" /> <w w2="being" p="90" /> </bi> <bi w1="business" count="1"> <w w2="people" p="100" /> Loading
tests/res/raw/test.dict −1.27 KiB (1.49 KiB) File changed.No diff preview for this file type. View original file View changed file
tests/src/com/android/inputmethod/latin/SuggestTests.java +3 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,8 @@ public class SuggestTests extends SuggestTestsBase { "part", mHelper.getBigramAutoCorrection("about", "pa")); // TODO: The following test fails. // suggested("single: said", "said", mHelper.getAutoCorrection("sa")); suggested("bigram: from sa[me]", "same", mHelper.getBigramAutoCorrection("from", "sa")); // TODO: The following test fails due to "transpose correction". // suggested("bigram: from sa[me]", // "same", mHelper.getBigramAutoCorrection("from", "sa")); } }