diff options
| author | Rob Pike <r@golang.org> | 2009-12-02 22:02:14 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-12-02 22:02:14 -0800 |
| commit | 9599e35e75f3bf5223edd9b0a0854536c23cdef2 (patch) | |
| tree | c8ce48aeddfe892be3754b0aa74217b4eb6d1e57 /src/pkg/encoding/ascii85/ascii85_test.go | |
| parent | 0247d93d819700b0bfc6814dc7b1c2afec4648a0 (diff) | |
| download | golang-9599e35e75f3bf5223edd9b0a0854536c23cdef2.tar.gz | |
move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.
this breaks the dependency of package io on package bytes.
R=rsc
CC=golang-dev
http://codereview.appspot.com/163085
Diffstat (limited to 'src/pkg/encoding/ascii85/ascii85_test.go')
| -rw-r--r-- | src/pkg/encoding/ascii85/ascii85_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/encoding/ascii85/ascii85_test.go b/src/pkg/encoding/ascii85/ascii85_test.go index 40bb1a25e..294f63825 100644 --- a/src/pkg/encoding/ascii85/ascii85_test.go +++ b/src/pkg/encoding/ascii85/ascii85_test.go @@ -6,7 +6,7 @@ package ascii85 import ( "bytes"; - "io"; + "io/ioutil"; "os"; "reflect"; "strings"; @@ -111,7 +111,7 @@ func TestDecode(t *testing.T) { func TestDecoder(t *testing.T) { for _, p := range pairs { decoder := NewDecoder(bytes.NewBufferString(p.encoded)); - dbuf, err := io.ReadAll(decoder); + dbuf, err := ioutil.ReadAll(decoder); if err != nil { t.Fatal("Read failed", err) } @@ -176,7 +176,7 @@ func TestBig(t *testing.T) { if err != nil { t.Fatalf("Encoder.Close() = %v want nil", err) } - decoded, err := io.ReadAll(NewDecoder(encoded)); + decoded, err := ioutil.ReadAll(NewDecoder(encoded)); if err != nil { t.Fatalf("io.ReadAll(NewDecoder(...)): %v", err) } |
