| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
| 5 // TODO(srdjan): Move StringBuffer to visible names. | 7 // TODO(srdjan): Move StringBuffer to visible names. |
| 6 | 8 |
| 7 class StringBufferTest { | 9 class StringBufferTest { |
| 8 static testConstructor() { | 10 static testConstructor() { |
| 9 StringBuffer bf = new StringBuffer(""); | 11 StringBuffer bf = new StringBuffer(""); |
| 10 Expect.equals(true, bf.isEmpty); | 12 Expect.equals(true, bf.isEmpty); |
| 11 | 13 |
| 12 bf = new StringBuffer("abc"); | 14 bf = new StringBuffer("abc"); |
| 13 Expect.equals(3, bf.length); | 15 Expect.equals(3, bf.length); |
| 14 Expect.equals("abc", bf.toString()); | 16 Expect.equals("abc", bf.toString()); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 testAdd(); | 144 testAdd(); |
| 143 testAddAll(); | 145 testAddAll(); |
| 144 testClear(); | 146 testClear(); |
| 145 testChaining(); | 147 testChaining(); |
| 146 } | 148 } |
| 147 } | 149 } |
| 148 | 150 |
| 149 main() { | 151 main() { |
| 150 StringBufferTest.testMain(); | 152 StringBufferTest.testMain(); |
| 151 } | 153 } |
| OLD | NEW |