blob: f1e2d35c0da1474e907050e5cacf45dda831c930 [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 String toString()
/// Returns a string representation of this object.
/// @description Checks that the returned string representation contains class
/// name and coordinates.
/// @author
import "dart:math";
import "../../../Utils/expect.dart";
main() {
var str = new Rectangle(0, 1, 1, 1).toString();
Expect.isTrue(str is String);
Expect.equals("Rectangle (0, 1) 1 x 1", str);