| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 main() { | 7 main() { |
| 8 var dt = new DateTime.now(); | 8 var dt = new DateTime.now(); |
| 9 Expect.isTrue(dt is Comparable); | 9 Expect.isTrue(dt is Comparable); |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 Expect.isTrue(dt2.compareTo(dt3b) < 0); | 33 Expect.isTrue(dt2.compareTo(dt3b) < 0); |
| 34 Expect.isTrue(dt4.compareTo(dt5b) < 0); | 34 Expect.isTrue(dt4.compareTo(dt5b) < 0); |
| 35 | 35 |
| 36 Expect.isTrue(dt3.compareTo(dt2) > 0); | 36 Expect.isTrue(dt3.compareTo(dt2) > 0); |
| 37 Expect.isTrue(dt4.compareTo(dt3) > 0); | 37 Expect.isTrue(dt4.compareTo(dt3) > 0); |
| 38 Expect.isTrue(dt5.compareTo(dt4) > 0); | 38 Expect.isTrue(dt5.compareTo(dt4) > 0); |
| 39 | 39 |
| 40 Expect.isTrue(dt3b.compareTo(dt2) > 0); | 40 Expect.isTrue(dt3b.compareTo(dt2) > 0); |
| 41 Expect.isTrue(dt5b.compareTo(dt4) > 0); | 41 Expect.isTrue(dt5b.compareTo(dt4) > 0); |
| 42 } | 42 } |
| OLD | NEW |