Skip to content

Commit

Permalink
Update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed Aug 5, 2016
1 parent a8f7f41 commit db38e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
backCoverName = "testdata/back_cover.jpg"
framesSize = 222479
tagSize = tagHeaderSize + framesSize
musicSize = 273310
musicSize = 4557971
)

func TestSetTags(t *testing.T) {
Expand Down Expand Up @@ -144,7 +144,7 @@ func TestIntegrityOfMusicAtTheBeginning(t *testing.T) {
t.Error("Error while reading mp3 file: ", err)
}

expected := []byte{0, 0, 0, 20, 102, 116, 121}
expected := []byte{255, 251, 144, 68, 0, 0, 0}
got := make([]byte, len(expected))
n, err = rd.Read(got)
if n != len(expected) {
Expand All @@ -168,7 +168,7 @@ func TestIntegrityOfMusicAtTheEnd(t *testing.T) {
defer mp3.Close()

rd := bufio.NewReader(mp3)
expected := []byte{3, 162, 192, 0, 3, 224, 203}
expected := []byte{0, 0, 0, 0, 0, 0, 255}
toDiscard := tagSize + musicSize - len(expected)
n, err := rd.Discard(toDiscard)
if n != toDiscard {
Expand Down
Binary file modified testdata/test.mp3
Binary file not shown.

0 comments on commit db38e69

Please sign in to comment.