Exemplo n.º 1
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 31200)
    test_utils.assert_time(DEMO_ID, 8.0, tolerance=0.0)
Exemplo n.º 2
0
def test_solution_ss():
    test_utils.assert_iteration(_grid_ss(), 100, tolerance=0.2, relative=True)
Exemplo n.º 3
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 2140)
    test_utils.assert_time(DEMO_ID, 0.0200081)
Exemplo n.º 4
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 50)
Exemplo n.º 5
0
def test_solution_des():
    test_utils.assert_iteration(_grid_des(), 30000)
    test_utils.assert_time(_grid_des(), 0.5)
Exemplo n.º 6
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 190, tolerance=0.1, relative=True)
Exemplo n.º 7
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 120, tolerance=0.1, relative=True)
Exemplo n.º 8
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 14400)
    test_utils.assert_time(DEMO_ID, 12.0)
Exemplo n.º 9
0
def test_solution_grid_003():
    test_utils.assert_iteration(_grid(3), 8700, tolerance=0.02, relative=True)
Exemplo n.º 10
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 31200)
    test_utils.assert_time(DEMO_ID, 8.0, tolerance=0.0)
Exemplo n.º 11
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 170, tolerance=20, relative=False)
Exemplo n.º 12
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 140, tolerance=20, relative=False)
Exemplo n.º 13
0
def test_solution_grid_003():
    test_utils.assert_iteration(_grid(3), 8500, tolerance=0.01, relative=True)
Exemplo n.º 14
0
def test_solution_des():
    test_utils.assert_iteration(_grid_des(), 18000)
    test_utils.assert_time(_grid_des(), 0.3)
Exemplo n.º 15
0
def test_solution_ss():
    test_utils.assert_iteration(_grid_ss(), 100, tolerance=0.2, relative=True)
Exemplo n.º 16
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 0)
Exemplo n.º 17
0
def test_solution():
    test_utils.assert_iteration(DEMO_ID, 14400)
    test_utils.assert_time(DEMO_ID, 12.0)