Skip to content

Commit 39b6244

Browse files
committed
Fix bug in array-merge test
When I created the new `Handle_multiple_copies_of_longer_list_different_orders` test last year ago, I ended up with a copy/paste error in the length of the `expected` list. This fixes that.
1 parent 45b3136 commit 39b6244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_merge/array_merge_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ TEST(ArrayMerge, Handle_multiple_copies_of_longer_list_different_orders) {
6363
int a1[] = { 5, 8, 9, 3, 2, 0, 6, 378293, 2, 0 };
6464
int a2[] = { 8, -52857, 0, 2, 3, 0, 2, 3, 6, 9 };
6565
int* a[] = { a0, a1, a2, a0, a1, a2, a0, a1, a2 };
66-
int expected[] = { 7, -52857, -22345, 0, 2, 3, 5, 6, 8, 9, 378293 };
66+
int expected[] = { 10, -52857, -22345, 0, 2, 3, 5, 6, 8, 9, 378293 };
6767
int* result;
6868

6969
result = array_merge(num_arrays, sizes, a);

0 commit comments

Comments
 (0)