diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-27 10:43:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-27 10:43:42 -0700 |
commit | 6e45be300efb0466ff753ffbbe5ffa80c235cf60 (patch) | |
tree | a9a943ff59ba01eb8b967fa4d330390a9e44b3bd /064list.mu | |
parent | 048a33c24fe4b1e937391693e3556e1edfdbfbcd (diff) | |
download | mu-6e45be300efb0466ff753ffbbe5ffa80c235cf60.tar.gz |
3423
Diffstat (limited to '064list.mu')
-rw-r--r-- | 064list.mu | 10 |
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: [] + ] +] |