blob: 7b5e19ce3204147bd12a04ee13ccd3c0a91cfd03 [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 new StringBuffer([Object content = ""])
* Creates the string buffer with an initial content.
* @description Tries to pass an argument that is null or isn't a String,
* correct string conversion expected
* @author msyabro
*/
import "../../../Utils/expect.dart";
main() {
Expect.equals(new Object().toString(), new StringBuffer(new Object()).toString());
Expect.equals("1", new StringBuffer(1).toString());
Expect.equals("true", new StringBuffer(true).toString());
}