diff options
author | 2013-02-06 15:27:21 -0800 | |
---|---|---|
committer | 2013-02-06 15:27:21 -0800 | |
commit | 68ed7aa990a73bbdd20ec539289d6b5351e41441 (patch) | |
tree | e472bb7f4f97372d41a5f6c01bd8f3af2541b44e | |
parent | afe889a83d43afe23d22d28a443b051bb115f023 (diff) | |
download | latinime-68ed7aa990a73bbdd20ec539289d6b5351e41441.tar.gz latinime-68ed7aa990a73bbdd20ec539289d6b5351e41441.tar.xz latinime-68ed7aa990a73bbdd20ec539289d6b5351e41441.zip |
Fix a test
The test is wrong - it checks a struct that contains a string
instead of checking the string itself.
Bug: 8149360
Change-Id: Ifb93d61f25a64a64e1c1e689de792f27994487b6
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java index 25575baf0..47885f023 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java @@ -246,7 +246,7 @@ public class BinaryDictIOUtilsTests extends AndroidTestCase { inStream.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, file.length())); final FileHeader header = BinaryDictInputOutput.readHeader(buffer); assertEquals(word, BinaryDictInputOutput.getWordAtAddress(buffer, header.mHeaderSize, - position - header.mHeaderSize, header.mFormatOptions)); + position - header.mHeaderSize, header.mFormatOptions).mWord); } catch (IOException e) { } catch (UnsupportedFormatException e) { } finally { |