示例#1
0
def test_part2():
    """Part 2 test"""
    assert part2("") == "a2582a3a0e66e6e86e3812dcb672a272"
    assert part2("AoC 2017") == "33efeb34ea91902bb2f59c9920caa6cd"
    assert part2("1,2,3") == "3efbe78a8d82f29979031a4aa0b16a9d"
    assert part2("1,2,4") == "63960835bcdc130f0b66d7ff4f6a5a8e"
    assert part2(DATA) == "7adfd64c2a03a4968cf708d1b7fd418d"
示例#2
0
 def test_example4(self):
     result = part2('1,2,4')
     self.assertEqual('63960835bcdc130f0b66d7ff4f6a5a8e', result)
示例#3
0
 def test_example2(self):
     result = part2('AoC 2017')
     self.assertEqual('33efeb34ea91902bb2f59c9920caa6cd', result)
示例#4
0
 def test_example3(self):
     result = part2('1,2,3')
     self.assertEqual('3efbe78a8d82f29979031a4aa0b16a9d', result)
示例#5
0
 def test_example1(self):
     result = part2('')
     self.assertEqual('a2582a3a0e66e6e86e3812dcb672a272', result)