|
|
@@ -25,3 +25,24 @@ def test_gui_generateTextureDescriptions( |
|
|
|
#} |
|
|
|
return "ERR: gui_generateTextureDescriptions" |
|
|
|
#} |
|
|
|
|
|
|
|
def test_gui_generateTilePositions( |
|
|
|
) -> str: |
|
|
|
c = memory_createContext() |
|
|
|
|
|
|
|
c.cellSize = 10 |
|
|
|
c.playfieldSize = 2 |
|
|
|
c.windowHeight = 200 |
|
|
|
c.windowWidth = 200 |
|
|
|
c.recentField = "windowWidth" |
|
|
|
|
|
|
|
c = gui_generateTilePositions(c) |
|
|
|
if ( |
|
|
|
c.recentField == "tilePositions" and |
|
|
|
len(c.tilePositions) == 4 and |
|
|
|
c.tilePositions[0][0] == 140 |
|
|
|
): |
|
|
|
return "OK: gui_generateTilePositions" |
|
|
|
#} |
|
|
|
return "ERR: gui_generateTilePositions" |
|
|
|
#} |