about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--064list.mu10
1 files changed, 9 insertions, 1 deletions
diff --git a/064list.mu b/064list.mu
index 4aa24b04..4c48f8e2 100644
--- a/064list.mu
+++ b/064list.mu
@@ -308,7 +308,7 @@ def to-buffer in:&:list:_elem, buf:&:buffer -> buf:&:buffer [
   load-ingredients
   {
     break-if in
-    buf <- append buf, 48/0
+    buf <- append buf, [[]]
     return
   }
   # append in.value to buf
@@ -337,3 +337,11 @@ def to-buffer in:&:list:_elem, buf:&:buffer -> buf:&:buffer [
   # past recursion depth; insert ellipses and stop
   append buf, [...]
 ]
+
+scenario stash-empty-list [
+  x:&:list:num <- copy 0
+  stash x
+  trace-should-contain [
+    app: []
+  ]
+]
07' href='#n107'>107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186