about summary refs log tree commit diff stats
path: root/js/magic-bird/imgs/extracted-1688-map/MapParts/towns/27.png
Commit message (Expand)AuthorAgeFilesLines
* *elioat2024-01-151-0/+0
naked literals everywhere' href='/akkartik/mu/commit/073scenario_screen_test.mu?h=main&id=bc6436927640603675e2e700007f53c5ab213869'>bc643692 ^
1fd41772 ^
bbe0801a ^
455fbac6 ^
1fd41772 ^






051c4738 ^
bc643692 ^
1fd41772 ^

bbe0801a ^
455fbac6 ^
1fd41772 ^
455fbac6 ^
1fd41772 ^
455fbac6 ^
1fd41772 ^






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

                                                                            
                                        
                                 
       
                            
                                                                                     






                         
                                                 
                                 

                       
                            
                                                                                     
                                  
                                                                                             
                
                                                                           






                         
# To check our support for screens in scenarios, rewrite tests from print.mu

scenario print-character-at-top-left-2 [
  assume-screen 3/width, 2/height
  run [
    1:character <- copy 97/a
    screen:address:shared:screen <- print screen:address:shared:screen, 1:character/a
  ]
  screen-should-contain [
    .a  .
    .   .
  ]
]

scenario clear-line-erases-printed-characters-2 [
  assume-screen 5/width, 3/height
  run [
    # print a character
    1:character <- copy 97/a
    screen:address:shared:screen <- print screen:address:shared:screen, 1:character/a
    # move cursor to start of line
    screen:address:shared:screen <- move-cursor screen:address:shared:screen, 0/row, 0/column
    # clear line
    screen:address:shared:screen <- clear-line screen:address:shared:screen
  ]
  screen-should-contain [
    .     .
    .     .
    .     .
  ]
]