예제 #1
0
 def test_row_1_col_0(self):
     coords = ScreenCoords(row=1, col=0, tile_width=20)
     self.assertEqual(0, coords.get_start_x())
     self.assertEqual(20, coords.get_start_y())
     self.assertEqual(20, coords.get_end_x())
     self.assertEqual(40, coords.get_end_y())
예제 #2
0
 def test_calculate_screen_coordinates_from_row_and_col_0_0(self):
     coords = ScreenCoords(row=0, col=0, tile_width=20)
     self.assertEqual(0, coords.get_start_x())
     self.assertEqual(0, coords.get_start_y())
     self.assertEqual(20, coords.get_end_x())
     self.assertEqual(20, coords.get_end_y())