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