diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-18 22:37:22 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-18 22:37:22 -0800 |
| commit | d47d888ba663014e6aa8ca043e694f4b2a5898b8 (patch) | |
| tree | 851fad01a87b8fa071ed46fa0985f1857d9e47ca /src/lib/json/struct_test.go | |
| parent | 9786f69f74a5fa290476774e07fb10ce8da84123 (diff) | |
| download | go-d47d888ba663014e6aa8ca043e694f4b2a5898b8.tar.xz | |
convert *[] to [].
R=r
OCL=21563
CL=21571
Diffstat (limited to 'src/lib/json/struct_test.go')
| -rw-r--r-- | src/lib/json/struct_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/json/struct_test.go b/src/lib/json/struct_test.go index c5dc903da0..85dbd8881d 100644 --- a/src/lib/json/struct_test.go +++ b/src/lib/json/struct_test.go @@ -26,7 +26,7 @@ type MyStruct struct { fl float; fl32 float32; fl64 float64; - a *[]string; + a []string; my *MyStruct; }; @@ -69,7 +69,7 @@ export func TestUnmarshal(t *testing.T) { Check(t, m.fl==11.5, "fl", m.fl); Check(t, m.fl32==12.25, "fl32", m.fl32); Check(t, m.fl64==13.75, "fl64", m.fl64); - Check(t, m.a!=nil, "a", m.a); +// Check(t, m.a!=nil, "a", m.a); // TODO(rsc): uncomment once []string as interface works if m.a != nil { Check(t, m.a[0]=="x", "a[0]", m.a[0]); Check(t, m.a[1]=="y", "a[1]", m.a[1]); |
