107 std::cout <<
"1st test using `int`\n";
108 const uint64_t size = 6;
109 std::vector<int64_t> arr;
120 assert(std::is_sorted(std::begin(arr), std::end(arr)));
121 std::cout <<
" 1st test passed!\n";
123 for (uint64_t i = 0; i < size; i++) {
124 std::cout << arr[i] <<
", ";
126 std::cout << std::endl;
129 std::cout <<
"2nd test using doubles\n";
130 std::vector<double> double_arr;
133 double_arr.push_back(20.4);
134 double_arr.push_back(62.7);
135 double_arr.push_back(12.2);
136 double_arr.push_back(43.6);
137 double_arr.push_back(74.1);
138 double_arr.push_back(57.9);
142 assert(std::is_sorted(std::begin(double_arr), std::end(double_arr)));
143 std::cout <<
" 2nd test passed!\n";
145 for (uint64_t i = 0; i < size; i++) {
146 std::cout << double_arr[i] <<
", ";
148 std::cout << std::endl;