Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- from gui import *
- from gui_TextureDescription import *
- from memory_Context import *
-
- def test_gui_generateTextureDescriptions(
- ) -> str:
- c = memory_createContext()
- c.tileImage = "res/img.png"
- c.tileImageCount = 3
- c.tileImageHeight = 35
- c.tileImageWidth = 20
- c.recentField = "tileImageWidth"
- c = gui_generateTextureDescriptions(c)
- if (
- c.recentField == "textureDescriptions" and
- len(c.textureDescriptions) == 3 and
- c.textureDescriptions[0].fileName == "res/img.png" and
- c.textureDescriptions[0].height == 35 and
- c.textureDescriptions[0].width == 20 and
- c.textureDescriptions[0].x == 0 and
- c.textureDescriptions[1].x == 20 and
- c.textureDescriptions[2].x == 40
- ):
- return "OK: gui_generateTextureDescriptions"
- #}
- return "ERR: gui_generateTextureDescriptions"
- #}
|