summaryrefslogtreecommitdiff
path: root/interp/interpreter_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'interp/interpreter_test.go')
-rw-r--r--interp/interpreter_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/interp/interpreter_test.go b/interp/interpreter_test.go
index 4f5690d..bc353bd 100644
--- a/interp/interpreter_test.go
+++ b/interp/interpreter_test.go
@@ -262,5 +262,7 @@ func TestComposite(t *testing.T) {
{src: `type T struct{N int; S string}; var t T; t = T{2, "foo"}; t`, res: `{2 foo}`},
{src: `type T struct{N int; S string}; t := T{2, "foo"}; t`, res: `{2 foo}`},
{src: `type T struct{N int; S string}; t := T{S: "foo"}; t`, res: `{0 foo}`},
+ {src: `a := []int{}`, res: `[]`},
+ // {src: `a := []int{1, 2, 3}`, res: `[1 2 3]`},
})
}