diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-12-04 13:28:22 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-12-04 13:28:22 +0100 |
| commit | f07fc0178831432b68f1b9bd6c96b257aa2e9abe (patch) | |
| tree | dc445dbf1b8946d09be7444b4f141a78e23a568f /interp | |
| parent | 90284c5bedc5ab7bb442b34ef470744578dcd266 (diff) | |
Diffstat (limited to 'interp')
| -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]`}, }) } |
