| 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 testCharCodeAt(); | 15 testCharCodeAt(); |
| 14 testEquals(); | 16 testEquals(); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 296 } |
| 295 test("abc"); | 297 test("abc"); |
| 296 test(""); | 298 test(""); |
| 297 test(" "); | 299 test(" "); |
| 298 } | 300 } |
| 299 } | 301 } |
| 300 | 302 |
| 301 main() { | 303 main() { |
| 302 StringTest.testMain(); | 304 StringTest.testMain(); |
| 303 } | 305 } |
| OLD | NEW |