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"; | |
8 | 7 |
9 class StringBaseTest { | 8 class StringBaseTest { |
10 | 9 |
11 StringBaseTest() {} | 10 StringBaseTest() {} |
12 | 11 |
13 toString() { | 12 toString() { |
14 return "StringBase Tester"; | 13 return "StringBase Tester"; |
15 } | 14 } |
16 | 15 |
17 static testInterpolation() { | 16 static testInterpolation() { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 static void testMain() { | 73 static void testMain() { |
75 testInterpolation(); | 74 testInterpolation(); |
76 testCreation(); | 75 testCreation(); |
77 testSubstring(); | 76 testSubstring(); |
78 } | 77 } |
79 } | 78 } |
80 | 79 |
81 main() { | 80 main() { |
82 StringBaseTest.testMain(); | 81 StringBaseTest.testMain(); |
83 } | 82 } |
OLD | NEW |