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