Exemplo n.º 1
0
def test_recalculate_fitness_rotations():
    rotations = [F, R, U, B, L, D, Fi, Ri, Ui, Bi, Li, Di]
    for rotation in rotations:
        c = Cube()
        rotation(c)
        c.recalculate_fitness()
        assert c.fitness == 52
Exemplo n.º 2
0
def test_recalculate_fitness_rotations():
    rotations = [F, R, U, B, L, D,
                 Fi, Ri, Ui, Bi, Li, Di]
    for rotation in rotations:
        c = Cube()
        rotation(c)
        c.recalculate_fitness()
        assert c.fitness == 52
Exemplo n.º 3
0
def test_recalculate_fitness_fresh_cube():
    c = Cube()
    c.recalculate_fitness()

    assert c.fitness == 0
Exemplo n.º 4
0
def test_recalculate_fitness_fresh_cube():
    c = Cube()
    c.recalculate_fitness()

    assert c.fitness == 0