blob: 1176ace9ae7f84daad56842f7d8a5bf86a9e0134 [file] [log] [blame]
// Copyright (c) 2013, 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 String toString()
* Returns a string representation of this object.
* @description Checks that a [String] is returned.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
void check(count) {
var l = new ByteData(count);
var res = l.toString();
Expect.isTrue(res is String);
}
main() {
check(0);
check(1);
check(5);
check(100);
}