| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 for (int j = 0; j < matrix.length; j++) { | 85 for (int j = 0; j < matrix.length; j++) { |
| 86 var left = matrix[i]; | 86 var left = matrix[i]; |
| 87 var right = matrix[j]; | 87 var right = matrix[j]; |
| 88 if (left is List) { | 88 if (left is List) { |
| 89 check(left, left, 0); | 89 check(left, left, 0); |
| 90 } | 90 } |
| 91 check(left, right, i == j ? 0 : (i < j ? -1 : 1)); | 91 check(left, right, i == j ? 0 : (i < j ? -1 : 1)); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 } | 94 } |
| OLD | NEW |