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 | 4 |
5 /** | 5 /** |
6 * This library contains an Expect class with static methods that can be used | 6 * This library contains an Expect class with static methods that can be used |
7 * for simple unit-tests. | 7 * for simple unit-tests. |
8 */ | 8 */ |
9 library expect; | 9 library expect; |
10 | 10 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 bool _identical(a, b) => identical(a, b); | 372 bool _identical(a, b) => identical(a, b); |
373 | 373 |
374 typedef bool _CheckExceptionFn(exception); | 374 typedef bool _CheckExceptionFn(exception); |
375 | 375 |
376 class ExpectException implements Exception { | 376 class ExpectException implements Exception { |
377 ExpectException(this.message); | 377 ExpectException(this.message); |
378 String toString() => message; | 378 String toString() => message; |
379 String message; | 379 String message; |
380 } | 380 } |
OLD | NEW |