From 08f4628e8b858120fe3547d8e5431d9abfe46bf8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2016 00:31:55 -0700 Subject: 3379 Can't use type abbreviations inside 'memory-should-contain'. --- 101run_sandboxed.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '101run_sandboxed.cc') diff --git a/101run_sandboxed.cc b/101run_sandboxed.cc index 3564218a..3fcad59e 100644 --- a/101run_sandboxed.cc +++ b/101run_sandboxed.cc @@ -218,7 +218,7 @@ def main [ 1:text <- new [# ab add 2, 2] 2:text <- run-sandboxed 1:text - 3:array:character <- copy *2:text + 3:array:char <- copy *2:text ] +mem: storing 52 in location 4 @@ -314,7 +314,7 @@ def main [ # try to interactively add 2 and 2 1:text <- new [add 2, 2] 2:text <- run-sandboxed 1:text - 10:array:character <- copy 2:text/lookup + 10:array:char <- copy 2:text/lookup ] # first letter in the output should be '4' in unicode +mem: storing 52 in location 11 @@ -328,7 +328,7 @@ def main [ z:text <- append x:text, y:text ] 2:text <- run-sandboxed 1:text - 10:array:character <- copy 2:text/lookup + 10:array:char <- copy 2:text/lookup ] # output contains "ab" +mem: storing 97 in location 11 @@ -340,7 +340,7 @@ def main [ 1:text <- new [x:number <- copy 34 get x:number, foo:offset] 2:text, 3:text <- run-sandboxed 1:text - 10:array:character <- copy 3:text/lookup + 10:array:char <- copy 3:text/lookup ] # error should be "unknown element foo in container number" +mem: storing 117 in location 11 -- cgit 1.4.1-2-gfad0 rtik/mu/blame/translate_emulated?h=main&id=0069028dae00202642c2e79928dbd290c7138fe3'>blame commit diff stats
path: root/translate_emulated
blob: a9c1e05d17d69df4787a99c25ffd8958e2634cc0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11