67 std::vector<uint32_t> array1 = {3, 4, 8, 5, 9, 1, 2, 6, 7, 4};
68 std::cout <<
"Test 1... ";
69 assert(search::cycle_detection::duplicateNumber(array1, array1.size()) ==
71 std::cout <<
"passed" << std::endl;
75 std::vector<uint32_t> array2 = {1, 2, 3, 4, 2};
76 std::cout <<
"Test 2... ";
77 assert(search::cycle_detection::duplicateNumber(array2, array2.size()) ==
79 std::cout <<
"passed" << std::endl;
83 std::vector<uint32_t> array3 = {};
84 std::cout <<
"Test 3... ";
85 assert(search::cycle_detection::duplicateNumber(array3, array3.size()) ==
88 std::cout <<
"passed" << std::endl;