Skip to content

Commit

Permalink
fix: use correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
Me-Phew committed Nov 21, 2024
1 parent 43ce095 commit 2c281e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/merge_sorter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ TEST(TestMergeSorter, SortsRandomArray) {

MergeSorter::sortArray(test_array);

for (int i = 0; i < test_array.size() - 1; ++i) {
for (std::vector<int>::size_type i = 0; i < test_array.size() - 1; ++i) {
ASSERT_LE(test_array[i], test_array[i + 1]);
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ TEST(TestMergeSorter, SortsLargeArray) {

MergeSorter::sortArray(test_array);

for (int i = 0; i < test_array.size() - 1; ++i) {
for (std::vector<int>::size_type i = 0; i < test_array.size() - 1; ++i) {
ASSERT_LE(test_array[i], test_array[i + 1]);
}
}
Expand All @@ -165,7 +165,7 @@ TEST(TestMergeSorter, SortsLargeArrayWithNegativeAndPositiveDuplicates) {

MergeSorter::sortArray(test_array);

for (int i = 0; i < test_array.size() - 1; ++i) {
for (std::vector<int>::size_type i = 0; i < test_array.size() - 1; ++i) {
ASSERT_LE(test_array[i], test_array[i + 1]);
}
}
Expand Down

0 comments on commit 2c281e6

Please sign in to comment.