fix conflict

This commit is contained in:
Liam Galvin 2018-11-04 20:34:04 +00:00
parent a0843f3e52
commit ce5eedf7c8
1 changed files with 0 additions and 20 deletions

View File

@ -1,14 +1,9 @@
package sixel
import (
"bytes"
"io"
"log"
"os"
"testing"
"github.com/stretchr/testify/require"
"golang.org/x/image/bmp"
)
// from https://en.wikipedia.org/wiki/Sixel
@ -26,19 +21,4 @@ func TestParsing(t *testing.T) {
img := six.RGBA()
require.NotNil(t, img)
var imageBuf bytes.Buffer
err = bmp.Encode(io.Writer(&imageBuf), img)
if err != nil {
log.Panic(err)
}
// Write to file.
fo, err := os.Create("img.bmp")
if err != nil {
panic(err)
}
defer fo.Close()
fo.Write(imageBuf.Bytes())
}