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 | 4 |
5 library sort_helper; | 5 library sort_helper; |
6 | 6 |
7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 | 8 |
9 typedef Sorter | 9 typedef Sorter |
10 = void Function(List<num>); | 10 = void Function(List<num>); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 for (int i = 0; i < a.length; i++) { | 149 for (int i = 0; i < a.length; i++) { |
150 a[i] = 1.5; | 150 a[i] = 1.5; |
151 } | 151 } |
152 testSort(a); | 152 testSort(a); |
153 } | 153 } |
154 | 154 |
155 Sorter sortFunction; | 155 Sorter sortFunction; |
156 Comparer compareFunction; | 156 Comparer compareFunction; |
157 } | 157 } |
OLD | NEW |