106 int arr1[10] = {78, 34, 35, 6, 34, 56, 3, 56, 2, 4};
107 std::cout <<
"Test 1... ";
109 assert(std::is_sorted(arr1, arr1 + 10));
110 std::cout <<
"passed" << std::endl;
112 int arr2[5] = {5, -3, 7, -2, 1};
113 std::cout <<
"Test 2... ";
115 assert(std::is_sorted(arr2, arr2 + 5));
116 std::cout <<
"passed" << std::endl;
118 float arr3[5] = {5.6, -3.1, -3.0, -2.1, 1.8};
119 std::cout <<
"Test 3... ";
121 assert(std::is_sorted(arr3, arr3 + 5));
122 std::cout <<
"passed" << std::endl;
124 std::vector<float> arr4({5.6, -3.1, -3.0, -2.1, 1.8});
125 std::cout <<
"Test 4... ";
127 assert(std::is_sorted(std::begin(arr4), std::end(arr4)));
128 std::cout <<
"passed" << std::endl;
131 std::cout <<
"Test 5... ";
134 assert(std::is_sorted(arr5, arr5 + 50));
135 std::cout <<
"passed" << std::endl;
138 std::cout <<
"Test 6... ";
141 assert(std::is_sorted(arr6, arr6 + 50));
142 std::cout <<
"passed" << std::endl;