about summary refs log tree commit diff stats
path: root/074list.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-19 09:14:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-19 11:49:34 -0700
commitfda4f09181db880dc5199d191161d75d8b9ad2b4 (patch)
tree458ddbe5b80205b17f0c53c937e274c85d4e24a8 /074list.mu
parentb105b9799f5604027e82ff225c25bcf67b8523c7 (diff)
downloadmu-fda4f09181db880dc5199d191161d75d8b9ad2b4.tar.gz
2795 - quick hacks for Caleb
It turns out that my extensible stash doesn't yet work well in all
situations. If you try to stash an array, you end up trying to create an
array local that's not statically sized -- a no-no.

Bah, just throw it all out.
Diffstat (limited to '074list.mu')
-rw-r--r--074list.mu24
1 files changed, 0 insertions, 24 deletions
diff --git a/074list.mu b/074list.mu
index 6cb7a9a1..d6f43a2c 100644
--- a/074list.mu
+++ b/074list.mu
@@ -102,27 +102,3 @@ def to-buffer in:address:shared:list:_elem, buf:address:shared:buffer -> buf:add
   # past recursion depth; insert ellipses and stop
   append buf, [...]
 ]
-
-scenario stash-on-list-converts-to-text [
-  run [
-    x:address:shared:list:number <- push 4, 0
-    x <- push 5, x
-    x <- push 6, x
-    stash [foo foo], x
-  ]
-  trace-should-contain [
-    app: foo foo 6 -> 5 -> 4
-  ]
-]
-
-scenario stash-handles-list-with-cycle [
-  run [
-    x:address:shared:list:number <- push 4, 0
-    y:address:address:shared:list:number <- get-address *x, next:offset
-    *y <- copy x
-    stash [foo foo], x
-  ]
-  trace-should-contain [
-    app: foo foo 4 -> 4 -> 4 -> 4 -> 4 -> 4 -> 4 -> ...
-  ]
-]