Example #1
0
def test_hashing1():
    number, first_hash = mine_advent_coin('abcdef')
    assert first_hash.startswith('000001dbbfa')
    assert number == 609043
Example #2
0
def test_hashing2():
    number, second_hash = mine_advent_coin('pqrstuv')
    assert second_hash.startswith('000006136ef')
    assert number == 1048970