def testDescribeMove(self): domino1 = Domino(1, 2) dx, dy = 1, 0 expected_move = '12r' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)
def testDescribeMove(self): domino1 = Domino(1, 2) dx, dy = 1, 0 expected_move = '12r' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)
def testDescribeMoveUpReversed(self): domino1 = Domino(1, 2) domino1.rotate(90) dx, dy = 0, 1 expected_move = '21u' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)
def testDescribeMoveUpReversed(self): domino1 = Domino(1, 2) domino1.rotate(90) dx, dy = 0, 1 expected_move = '21u' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)
def testDescribeMoveReversed(self): domino1 = Domino(1, 2) domino1.rotate(180) dx, dy = 1, 0 expected_move = '21r' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)
def testDescribeMoveReversed(self): domino1 = Domino(1, 2) domino1.rotate(180) dx, dy = 1, 0 expected_move = '21r' move = domino1.describe_move(dx, dy) self.assertEqual(expected_move, move)