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