diff options
author | Yilun Chong <yilunchong@google.com> | 2018-08-01 10:06:27 -0700 |
---|---|---|
committer | Yilun Chong <yilunchong@google.com> | 2018-08-01 10:06:27 -0700 |
commit | 2ab6cb457028b322a9daba45e356f3fab26107e7 (patch) | |
tree | 846c56d3300d0cf70b08d48d00a3ad93a1eb95dc | |
parent | ed1cd2c5c63985128e582569c4a5d59a3ca71ebc (diff) | |
download | protobuf-2ab6cb457028b322a9daba45e356f3fab26107e7.tar.gz protobuf-2ab6cb457028b322a9daba45e356f3fab26107e7.tar.bz2 protobuf-2ab6cb457028b322a9daba45e356f3fab26107e7.zip |
fix
-rw-r--r-- | js/binary/reader_test.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/binary/reader_test.js b/js/binary/reader_test.js index 0818109f..28f135bf 100644 --- a/js/binary/reader_test.js +++ b/js/binary/reader_test.js @@ -681,10 +681,12 @@ describe('binaryReaderTest', function() { writer.writeGroup(5, dummyMessage, function() { writer.writeInt64(42, 42); writer.writeInt64(44, 44); - writer.writeString(43, 'The quick brown fox jumps over the lazy dog'); + writer.writeBytes(43, [255, 255, 255, 255, 255, 255, 255, 255, 255, 255]); writer.writeGroup(6, dummyMessage, function() { writer.writeInt64(84, 42); - writer.writeString(85, 'The quick brown fox jumps over the lazy dog'); + writer.writeInt64(84, 44); + writer.writeBytes( + 43, [255, 255, 255, 255, 255, 255, 255, 255, 255, 255]); }); }); |