1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
13 func TestRead(t *testing.T) {
20 if n != len(b) || err != nil {
21 t.Fatalf("Read(buf) = %d, %s", n, err)
25 f := flate.NewWriter(&z, 5)
28 if z.Len() < len(b)*99/100 {
29 t.Fatalf("Compressed %d -> %d", len(b), z.Len())