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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/interp/interpreter_test.go b/interp/interpreter_test.go
index 5d0dd55..c7c3cbc 100644
--- a/interp/interpreter_test.go
+++ b/interp/interpreter_test.go
@@ -269,7 +269,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}`}, // #03
{src: `type T struct{N int; S string}; t := T{2, "foo"}; t`, res: `{2 foo}`}, // #04
{src: `type T struct{N int; S string}; t := T{S: "foo"}; t`, res: `{0 foo}`}, // #05
- // {src: `a := []int{}`, res: `[]`}, // #06
- // {src: `a := []int{1, 2, 3}`, res: `[1 2 3]`}, // #07
+ {src: `a := []int{}`, res: `[]`}, // #06
+ {src: `a := []int{1, 2, 3}; a`, res: `[1 2 3]`}, // #07
})
}