OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include "quick_sort_test.h" | 6 #include "quick_sort_test.h" |
7 #include "cgptlib_test.h" | 7 #include "cgptlib_test.h" |
8 #include "quick_sort.h" | 8 #include "quick_sort.h" |
9 #include "utility.h" | 9 #include "utility.h" |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 for (i = 0; i < number_of_elements - 1; ++i) | 129 for (i = 0; i < number_of_elements - 1; ++i) |
130 EXPECT(directions[dir].verify(p[i], p[i + 1])); | 130 EXPECT(directions[dir].verify(p[i], p[i + 1])); |
131 | 131 |
132 Free(p); | 132 Free(p); |
133 } | 133 } |
134 } | 134 } |
135 | 135 |
136 return TEST_OK; | 136 return TEST_OK; |
137 } | 137 } |
OLD | NEW |