summary refs log tree commit diff stats
path: root/lib/uidstore
stat options
Period:
Authors:

Commits per author per week (path 'lib/uidstore')

AuthorW46 2024W47 2024W48 2024W49 2024Total
Total00000
href='/akkartik/mu/commit/076scenario_console_test.mu?h=main&id=45c08fea47de1a23ce98f4fc7a1c5c3bed92b5fb'>45c08fea ^
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
























                                                                       
# 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:character, console:address, 2:boolean <- read-key console:address
    3:character, console:address, 4:boolean <- read-key console:address
    5:character, console:address, 6:boolean <- read-key console:address
    7:character, console:address, 8:boolean <- read-key console:address
  ]
  memory-should-contain [
    1 <- 97  # 'a'
    2 <- 1
    3 <- 98  # 'b'
    4 <- 1
    5 <- 99  # 'c'
    6 <- 1
    7 <- 0  # eof
    8 <- 1
  ]
]