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 // Testing the Expect class. | 4 // Testing the Expect class. |
5 | 5 |
6 class ExpectTest { | 6 class ExpectTest { |
7 | 7 |
8 static testEquals(a) { | 8 static testEquals(a) { |
9 try { | 9 try { |
10 Expect.equals("AB", a, "within testEquals"); | 10 Expect.equals("AB", a, "within testEquals"); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 testIsFalse(0); | 68 testIsFalse(0); |
69 testIdentical("A"); | 69 testIdentical("A"); |
70 testFail(); | 70 testFail(); |
71 } | 71 } |
72 | 72 |
73 } | 73 } |
74 | 74 |
75 main() { | 75 main() { |
76 ExpectTest.testMain(); | 76 ExpectTest.testMain(); |
77 } | 77 } |
OLD | NEW |