diff options
Diffstat (limited to '083scenario_screen_test.mu')
-rw-r--r-- | 083scenario_screen_test.mu | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/083scenario_screen_test.mu b/083scenario_screen_test.mu index 9679e9cf..c96b6e56 100644 --- a/083scenario_screen_test.mu +++ b/083scenario_screen_test.mu @@ -3,8 +3,9 @@ scenario print-character-at-top-left-2 [ assume-screen 3/width, 2/height run [ - 1:character <- copy 97/a - screen:address:screen <- print screen:address:screen, 1:character/a + local-scope + a:character <- copy 97/a + screen:address:screen <- print screen:address:screen, a ] screen-should-contain [ .a . @@ -15,9 +16,10 @@ scenario print-character-at-top-left-2 [ scenario clear-line-erases-printed-characters-2 [ assume-screen 5/width, 3/height run [ + local-scope # print a character - 1:character <- copy 97/a - screen:address:screen <- print screen:address:screen, 1:character/a + a:character <- copy 97/a + screen:address:screen <- print screen:address:screen, a # move cursor to start of line screen:address:screen <- move-cursor screen:address:screen, 0/row, 0/column # clear line |