diff --git a/core/test/src/com/google/zxing/qrcode/encoder/EncoderTestCase.java b/core/test/src/com/google/zxing/qrcode/encoder/EncoderTestCase.java index d7d72032d..7a11e4b83 100644 --- a/core/test/src/com/google/zxing/qrcode/encoder/EncoderTestCase.java +++ b/core/test/src/com/google/zxing/qrcode/encoder/EncoderTestCase.java @@ -566,13 +566,20 @@ public final class EncoderTestCase extends TestCase { public void testIsValidKanjiSequence() { // AIUEO in Katakana - byte[] dat1 = {0x8,0x4,0x8,0x4,0x8,0x4,0x8,0x4,0x8,0x49}; + byte[] dat1 = { + (byte)0x83, 0x41, (byte)0x83, 0x43, (byte)0x83, 0x45, (byte)0x83, 0x47, (byte)0x83, 0x49 + }; assertTrue(Encoder.IsValidKanjiSequence(new ByteArray(dat1))); // 012345 in multi-byte letters. - byte[] dat2 = {0x8,0x4,0x8,0x5,0x8,0x5,0x8,0x5,0x8,0x5,0x8,0x54}; + byte[] dat2 = { + (byte)0x82, 0x4f, (byte)0x82, 0x50, (byte)0x82, 0x51, (byte)0x82, 0x52, (byte)0x82, 0x53, + (byte)0x82, 0x54 + }; assertTrue(Encoder.IsValidKanjiSequence(new ByteArray(dat2))); // Yoroshiku in Kanji. - byte[] dat3 = {0x9,0xe,0x9,0x4,0x8,0x8,0x8,(byte)0xea}; + byte[] dat3 = { + (byte)0x96, (byte)0xe9, (byte)0x98, 0x49, (byte)0x8e, (byte)0x80, (byte)0x8b, (byte)0xea + }; assertTrue(Encoder.IsValidKanjiSequence(new ByteArray(dat3))); assertFalse(Encoder.IsValidKanjiSequence(new ByteArray("0123"))); assertFalse(Encoder.IsValidKanjiSequence(new ByteArray("ABC")));