blob: a8b1fe51b356474e2b1e1b80b167a78668e8d3e5 [file] [log] [blame]
// Copyright (c) 2011, 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 void write(Object obj)
/// Adds the contents of obj, converted to a string, to the buffer.
/// @description Checks that the String argument is appended to the buffer
/// @author msyabro
import "../../../Utils/expect.dart";
main() {
StringBuffer sb = new StringBuffer();
Expect.equals("buffer", sb.toString());
Expect.equals("buffer", sb.toString());
Expect.equals("bufferbuffer", sb.toString());
Expect.equals("bufferbuffer\u0000", sb.toString());