| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Dart test program for testing class 'StringBase' (currently VM specific). | 4 // Dart test program for testing class 'StringBase' (currently VM specific). |
| 5 | 5 |
| 6 library string_base_test; | 6 library string_base_test; |
| 7 import "package:expect/expect.dart"; |
| 7 | 8 |
| 8 class StringBaseTest { | 9 class StringBaseTest { |
| 9 | 10 |
| 10 StringBaseTest() {} | 11 StringBaseTest() {} |
| 11 | 12 |
| 12 toString() { | 13 toString() { |
| 13 return "StringBase Tester"; | 14 return "StringBase Tester"; |
| 14 } | 15 } |
| 15 | 16 |
| 16 static testInterpolation() { | 17 static testInterpolation() { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 static void testMain() { | 74 static void testMain() { |
| 74 testInterpolation(); | 75 testInterpolation(); |
| 75 testCreation(); | 76 testCreation(); |
| 76 testSubstring(); | 77 testSubstring(); |
| 77 } | 78 } |
| 78 } | 79 } |
| 79 | 80 |
| 80 main() { | 81 main() { |
| 81 StringBaseTest.testMain(); | 82 StringBaseTest.testMain(); |
| 82 } | 83 } |
| OLD | NEW |