func TestReaderErrors(t *testing.T) { m := minify.New() r := test.NewErrorReader(0) w := &bytes.Buffer{} assert.Equal(t, test.ErrPlain, Minify(m, w, r, nil), "Minify must return error at first read") }
func TestReaderErrors(t *testing.T) { m := minify.New() r := test.NewErrorReader(0) w := &bytes.Buffer{} test.Error(t, Minify(m, w, r, nil), test.ErrPlain, "return error at first read") }