about summary refs log tree commit diff stats
path: root/073array.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-26 16:46:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-26 16:46:38 -0700
commitad8161f34526599a94b12d38554cff9ac20467da (patch)
tree88261c5018d8582aa281889852f268a31f87c5fb /073array.mu
parentf88551d1bdc28afaa1c60c97205d152417e6f145 (diff)
downloadmu-ad8161f34526599a94b12d38554cff9ac20467da.tar.gz
3015 - more symbolic names in tests
There's still a problem: if I ever want to use any of the special
scenario variables like 'screen', 'console', etc., then I can't use
'local-scope' in my scenario.
Diffstat (limited to '073array.mu')
-rw-r--r--073array.mu13
1 files changed, 7 insertions, 6 deletions
diff --git a/073array.mu b/073array.mu
index 7e1bf807..8272a865 100644
--- a/073array.mu
+++ b/073array.mu
@@ -1,13 +1,14 @@
 scenario array-from-args [
   run [
-    1:address:array:character <- new-array 0, 1, 2
-    2:array:character <- copy *1:address:array:character
+    local-scope
+    x:address:array:character <- new-array 0, 1, 2
+    10:array:character/raw <- copy *x
   ]
   memory-should-contain [
-    2 <- 3  # array length
-    3 <- 0
-    4 <- 1
-    5 <- 2
+    10 <- 3  # array length
+    11 <- 0
+    12 <- 1
+    13 <- 2
   ]
 ]