From 6e45be300efb0466ff753ffbbe5ffa80c235cf60 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 27 Sep 2016 10:43:42 -0700 Subject: 3423 --- 064list.mu | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: [] + ] +] -- cgit 1.4.1-2-gfad0