about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_table_enhancements_minimal.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_table_enhancements_minimal.txt')
0 files changed, 0 insertions, 0 deletions
='n7' href='#n7'>7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25








                                                                    



                                      











                         
# To check our support for consoles in scenarios, rewrite tests from
# scenario_console.mu
# Tests for console interface.

scenario read-key-in-mu [
  assume-console [
    type [abc]
  ]
  run [
    1:char, 2:bool <- read-key console
    3:char, 4:bool <- read-key console
    5:char, 6:bool <- read-key console
    7:char, 8:bool <- read-key console
  ]
  memory-should-contain [
    1 <- 97  # 'a'
    2 <- 1
    3 <- 98  # 'b'
    4 <- 1
    5 <- 99  # 'c'
    6 <- 1
    7 <- 0  # eof
    8 <- 1
  ]
]