| 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 | |
| 7 // TODO(ngeoffray): test String methods with null arguments. | 5 // TODO(ngeoffray): test String methods with null arguments. |
| 8 class StringTest { | 6 class StringTest { |
| 9 | 7 |
| 10 static testMain() { | 8 static testMain() { |
| 11 testOutOfRange(); | 9 testOutOfRange(); |
| 12 testIllegalArgument(); | 10 testIllegalArgument(); |
| 13 testConcat(); | 11 testConcat(); |
| 14 testIndex(); | 12 testIndex(); |
| 15 testCodeUnitAt(); | 13 testCodeUnitAt(); |
| 16 testEquals(); | 14 testEquals(); |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 } | 280 } |
| 283 test("abc"); | 281 test("abc"); |
| 284 test(""); | 282 test(""); |
| 285 test(" "); | 283 test(" "); |
| 286 } | 284 } |
| 287 } | 285 } |
| 288 | 286 |
| 289 main() { | 287 main() { |
| 290 StringTest.testMain(); | 288 StringTest.testMain(); |
| 291 } | 289 } |
| OLD | NEW |