mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Fix for loop formatiing
This commit is contained in:
commit
7af31e32a2
@ -51,9 +51,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
/** \brief
|
||||
* Insertion Sort Function
|
||||
@ -76,7 +76,7 @@ void insertionSort(int *arr, int n) {
|
||||
|
||||
/** Test Cases to test algorithm */
|
||||
void tests() {
|
||||
int arr1[10] = { 78, 34, 35, 6, 34, 56, 3, 56, 2, 4};
|
||||
int arr1[10] = {78, 34, 35, 6, 34, 56, 3, 56, 2, 4};
|
||||
insertionSort(arr1, 10);
|
||||
assert(std::is_sorted(arr1, arr1 + 10));
|
||||
std::cout << "Test 1 Passed" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user