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 for testing Math.min and Math.max. | 4 // Dart test for testing Math.min and Math.max. |
5 | 5 |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 | 7 |
8 negate(x) => -x; | 8 negate(x) => -x; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 Expect.equals(1, nan.compareTo(-499)); | 127 Expect.equals(1, nan.compareTo(-499)); |
128 Expect.equals(1, nan.compareTo(-0.0)); | 128 Expect.equals(1, nan.compareTo(-0.0)); |
129 Expect.equals(1, nan.compareTo(0)); | 129 Expect.equals(1, nan.compareTo(0)); |
130 Expect.equals(1, nan.compareTo(0.0)); | 130 Expect.equals(1, nan.compareTo(0.0)); |
131 Expect.equals(1, nan.compareTo(499.0)); | 131 Expect.equals(1, nan.compareTo(499.0)); |
132 Expect.equals(1, nan.compareTo(499)); | 132 Expect.equals(1, nan.compareTo(499)); |
133 Expect.equals(1, nan.compareTo(inf)); | 133 Expect.equals(1, nan.compareTo(inf)); |
134 Expect.equals(0, nan.compareTo(nan)); | 134 Expect.equals(0, nan.compareTo(nan)); |
135 Expect.equals(0, nan.compareTo(mnan)); | 135 Expect.equals(0, nan.compareTo(mnan)); |
136 } | 136 } |
OLD | NEW |