Exemplo n.º 1
0
 def test_brick_next_state_both_falling(self):
     brick = Brick(1, 2, 0)
     brick.next_state()
     self.assertEqual(brick.state, 1)
Exemplo n.º 2
0
 def test_brick_next_state_left_falling(self):
     brick = Brick(1, 2, 1)
     brick.next_state()
     self.assertEqual(brick.state, 2)
Exemplo n.º 3
0
 def test_brick_next_state_right_falling(self):
     brick = Brick(1, 1, 0)
     brick.next_state()
     self.assertEqual(brick.state, 0)
Exemplo n.º 4
0
 def test_brick_next_state_none_falling(self):
     brick = Brick(1, 1, 1)
     brick.next_state()
     self.assertEqual(brick.state, 1)