mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
indirection on array elements.
R=rsc DELTA=57 (34 added, 10 deleted, 13 changed) OCL=31098 CL=31101
This commit is contained in:
parent
b5666a123a
commit
c1fc4c8f37
3 changed files with 47 additions and 23 deletions
|
|
@ -529,9 +529,12 @@ func TestEncode(t *testing.T) {
|
|||
type T2 struct {
|
||||
t string
|
||||
}
|
||||
s1 := "string1";
|
||||
s2 := "string2";
|
||||
type T1 struct {
|
||||
a, b,c int;
|
||||
n *[3]float;
|
||||
strs *[2]string;
|
||||
s string;
|
||||
y []byte;
|
||||
t *T2;
|
||||
|
|
@ -541,6 +544,7 @@ func TestEncode(t *testing.T) {
|
|||
b: 18,
|
||||
c: -5,
|
||||
n: &[3]float{1.5, 2.5, 3.5},
|
||||
strs: &[2]string{s1, s2},
|
||||
s: "Now is the time",
|
||||
y: strings.Bytes("hello, sailor"),
|
||||
t: &T2{"this is T2"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue