110 int arr1[10] = {78, 34, 35, 6, 34, 56, 3, 56, 2, 4};
111 std::cout <<
"Test 1... ";
113 assert(std::is_sorted(arr1, arr1 + 10));
114 std::cout <<
"passed" << std::endl;
116 int arr2[5] = {5, -3, 7, -2, 1};
117 std::cout <<
"Test 2... ";
119 assert(std::is_sorted(arr2, arr2 + 5));
120 std::cout <<
"passed" << std::endl;
122 float arr3[5] = {5.6, -3.1, -3.0, -2.1, 1.8};
123 std::cout <<
"Test 3... ";
125 assert(std::is_sorted(arr3, arr3 + 5));
126 std::cout <<
"passed" << std::endl;
128 std::vector<float> arr4({5.6, -3.1, -3.0, -2.1, 1.8});
129 std::cout <<
"Test 4... ";
131 assert(std::is_sorted(std::begin(arr4), std::end(arr4)));
132 std::cout <<
"passed" << std::endl;
135 std::cout <<
"Test 5... ";
138 assert(std::is_sorted(arr5, arr5 + 50));
139 std::cout <<
"passed" << std::endl;
142 std::cout <<
"Test 6... ";
145 assert(std::is_sorted(arr6, arr6 + 50));
146 std::cout <<
"passed" << std::endl;