Example #1
0
def test_part2():
    rack = day11.Rack(3999)
    assert rack.best_region_scan_size() == (224, 222, 27)
Example #2
0
def test2():
    rack = day11.Rack(8)
    assert rack[3, 5] == 4
Example #3
0
def test_part1():
    rack = day11.Rack(3999)
    assert rack.best_region()[0] == (21, 77)
Example #4
0
def test_part_2_2():
    rack = day11.Rack(42)
    assert rack.best_region_scan_size() == (232, 251, 12)
Example #5
0
def test_part_2_1():
    rack = day11.Rack(18)
    assert rack.best_region_scan_size() == (90, 269, 16)
Example #6
0
def test6():
    rack = day11.Rack(42)
    assert rack.best_region() == ((21, 61), 30)
Example #7
0
def test5():
    rack = day11.Rack(18)
    assert rack.best_region() == ((33, 45), 29)