def test_repeat_2(): moons = MoonSet(test_input_2) repeat = moons.find_first_repeat() assert repeat == 4_686_774_924
def test_part2(): with open('input.txt') as file: specs = file.read() moons = MoonSet(specs) repeat = moons.find_first_repeat() assert repeat == 295693702908636
def test_repeat_1(use_lcm): moons = MoonSet(test_input_1) repeat = moons.find_first_repeat(use_lcm) assert repeat == 2772