diff options
Diffstat (limited to 'interp/interpreter_test.go')
| -rw-r--r-- | interp/interpreter_test.go | 2 |
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]`}, }) } |
