コード例 #1
0
ファイル: test_map.py プロジェクト: TryExceptElse/pyrostex
 def test_tile_from_xy_returns_correctly5(self):
     m = GreyCubeMap(width=1536, height=1024)
     i = m.tile_from_xy((1535, 1023))
     self.assertEqual(5, i.cube_face)
コード例 #2
0
ファイル: test_map.py プロジェクト: TryExceptElse/pyrostex
 def test_tile_from_xy_returns_correctly3(self):
     m = GreyCubeMap(width=1536, height=1024)
     i = m.tile_from_xy((0, 512))
     self.assertEqual(3, i.cube_face)