48 Container randomdArray(ArrayRand);
49 QuickSort<IT>(randomdArray.begin(), randomdArray.end());
52 for (
auto it = randomdArray.begin(); it < randomdArray.end() - 1; ++it)
53 EXPECT_LE(*it, *(it + 1));
58 Container sortedArray(ArraySort);
59 QuickSort<IT>(sortedArray.begin(), sortedArray.end());
62 for (
auto it = sortedArray.begin(); it < sortedArray.end() - 1; ++it)
63 EXPECT_LE(*it, *(it + 1));
68 Container randomdArray(ArrayRand);
69 QuickSort<IT>(randomdArray.end(), randomdArray.begin());
72 for (
auto it = randomdArray.begin(); it < randomdArray.end(); ++it, ++i)
73 EXPECT_EQ(ArrayRand[i], *it);
79 QuickSort<IT>(emptyArray.begin(), emptyArray.end());
84 Container uniqueValueArray(1, 511);
85 QuickSort<IT>(uniqueValueArray.begin(), uniqueValueArray.end());
86 EXPECT_EQ(511, uniqueValueArray[0]);
91 std::string stringToSort = StrRand;
92 QuickSort<std::string::iterator, std::less_equal<char>>(stringToSort.begin(), stringToSort.end());
93 for (
auto it = stringToSort.begin(); it < stringToSort.end() - 1; ++it)
94 EXPECT_LE(*it, *(it + 1));