about summary refs log tree commit diff stats
path: root/cpp/051scenario_test.mu
blob: d401c62b7040cabb20d91091dd5dac52217c9f0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# tests for 'scenario' in previous layer

scenario first_scenario_in_mu [
  run [
    1:integer <- add 2:literal, 2:literal
  ]
  memory should contain [
    1 <- 4
  ]
]

scenario check_string_in_memory [
  run [
    1:integer <- copy 3:literal
    2:character <- copy 97:literal  # 'a'
    3:character <- copy 98:literal  # 'b'
    4:character <- copy 99:literal  # 'c'
  ]
  memory should contain [
    1:string <- [abc]
  ]
]