diff options
author | 2014-10-01 07:53:03 +0000 | |
---|---|---|
committer | 2014-10-01 07:53:04 +0000 | |
commit | 108dad1491d44bf381fdb5d4f0767fb251f28522 (patch) | |
tree | 8da56a5ec729e59e7dfb0185617ce871626f2da6 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | |
parent | 7b673c72651aa7dbfc3fc87fe2190d8cffb320c1 (diff) | |
parent | c6a6f6a9905ab98516d944ac85933d016e4147fb (diff) | |
download | latinime-108dad1491d44bf381fdb5d4f0767fb251f28522.tar.gz latinime-108dad1491d44bf381fdb5d4f0767fb251f28522.tar.xz latinime-108dad1491d44bf381fdb5d4f0767fb251f28522.zip |
Merge "Introduce NgramProperty in Java side."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java index 406046a74..f8b68e0ce 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java @@ -682,8 +682,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase { } assertTrue(shortcutList.isEmpty()); } - for (int j = 0; j < wordProperty.mBigrams.size(); j++) { - final String word1 = wordProperty.mBigrams.get(j).mWord; + for (final WeightedString bigramTarget : wordProperty.getBigrams()) { + final String word1 = bigramTarget.mWord; final Pair<String, String> bigram = new Pair<>(word0, word1); assertTrue(bigramSet.contains(bigram)); bigramSet.remove(bigram); |