| Index: pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/flat_buffers_test.dart b/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| index 4f46528817993db051d71b26fd4645231188a0a3..d9bc6616b62a46cb3d9921bd2b31f1b5bd4d232a 100644
|
| --- a/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/flat_buffers_test.dart
|
| @@ -107,6 +107,20 @@ class BuilderTest {
|
| expect(const Int32Reader().vTableGet(object, 3), 40);
|
| }
|
|
|
| + void test_writeList_ofInt32() {
|
| + List<int> byteList;
|
| + {
|
| + Builder builder = new Builder(initialSize: 0);
|
| + Offset offset = builder.writeListInt32(<int>[1, 2, 3, 4, 5]);
|
| + byteList = builder.finish(offset);
|
| + }
|
| + // read and verify
|
| + BufferPointer root = new BufferPointer.fromBytes(byteList);
|
| + List<int> items = const ListReader<int>(const Int32Reader()).read(root);
|
| + expect(items, hasLength(5));
|
| + expect(items, orderedEquals(<int>[1, 2, 3, 4, 5]));
|
| + }
|
| +
|
| void test_writeList_ofObjects() {
|
| List<int> byteList;
|
| {
|
| @@ -127,7 +141,7 @@ class BuilderTest {
|
| builder.addInt32(1, 200);
|
| object2 = builder.endTable();
|
| }
|
| - // write the line
|
| + // write the list
|
| Offset offset = builder.writeList([object1, object2]);
|
| byteList = builder.finish(offset);
|
| }
|
|
|