blob: 41f95221f219e865e7fe7189b5a1f1b4c9a9b05b [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion int length
/// The number of bytes in the builder.
/// @description Checks that this property returns the number of bytes in the
/// builder
/// @author
import "dart:io";
import "../../../Utils/expect.dart";
main() {
BytesBuilder builder = new BytesBuilder();
Expect.equals(0, builder.length);
var data = [1, 2, 3];
Expect.equals(3, builder.length);
Expect.equals(4, builder.length);