43 Container randomdArrayPos(RandomArrayIntPos, RandomArrayIntPos +
sizeof(RandomArrayIntPos) /
sizeof(
int));
44 RaddixSort<IT>(randomdArrayPos.begin(), randomdArrayPos.end());
47 for (IT it = randomdArrayPos.begin(); it < randomdArrayPos.end() - 1; ++it)
48 EXPECT_LE(*it, *(it + 1));
53 Container sortedArrayPos(SortedArrayIntPos, SortedArrayIntPos +
sizeof(SortedArrayIntPos) /
sizeof(
int));
54 RaddixSort<IT>(sortedArrayPos.begin(), sortedArrayPos.end());
57 for (IT it = sortedArrayPos.begin(); it < sortedArrayPos.end() - 1; ++it)
58 EXPECT_LE(*it, *(it + 1));
63 Container randomArrayPos(RandomArrayIntPos, RandomArrayIntPos +
sizeof(RandomArrayIntPos) /
sizeof(
int));
64 RaddixSort<IT>(randomArrayPos.end(), randomArrayPos.begin());
67 for (IT it = randomArrayPos.begin(); it < randomArrayPos.end(); ++it, ++i)
68 EXPECT_EQ(RandomArrayIntPos[i], *it);
74 RaddixSort<IT>(emptyArray.begin(), emptyArray.end());
79 Container uniqueValueArray(1, 511);
80 RaddixSort<IT>(uniqueValueArray.begin(), uniqueValueArray.end());
81 EXPECT_EQ(511, uniqueValueArray[0]);