diff options
author | 2014-06-24 12:37:07 +0900 | |
---|---|---|
committer | 2014-06-24 12:37:07 +0900 | |
commit | 88fa47a27d45f6460971d0d223aa558e121b3478 (patch) | |
tree | 66ec3c729f26a82efdbfc84f6ce838f9b315b5fe /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | |
parent | f7322b166b88f72b19509d8416700d4ec8ea7753 (diff) | |
download | latinime-88fa47a27d45f6460971d0d223aa558e121b3478.tar.gz latinime-88fa47a27d45f6460971d0d223aa558e121b3478.tar.xz latinime-88fa47a27d45f6460971d0d223aa558e121b3478.zip |
Support migration/dump of Beginning-of-Sentence entries.
Bug: 14119293
Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java index 4b332ca84..406046a74 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java @@ -614,7 +614,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase { 0 /* offset */, file.length(), true /* useFullEditDistance */, Locale.ENGLISH, dictName, false /* isUpdatable */); for (final String word : words) { - final WordProperty wordProperty = binaryDictionary.getWordProperty(word); + final WordProperty wordProperty = binaryDictionary.getWordProperty(word, + false /* isBeginningOfSentence */); assertEquals(word, wordProperty.mWord); assertEquals(UNIGRAM_FREQ, wordProperty.getProbability()); if (shortcuts.containsKey(word)) { |