Fixed up testing.
parent
25645f0ba9
commit
4d89c2fe03
|
@ -1,7 +1,6 @@
|
|||
package flac
|
||||
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -10,5 +9,13 @@ func TestGetMetadata(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
log.Printf("%v", md)
|
||||
expected := Metadata{
|
||||
SampleRate: 48000,
|
||||
BPS: 16,
|
||||
Channels: 2,
|
||||
NumSamples: 174564,
|
||||
}
|
||||
if md != expected {
|
||||
t.Fatalf("%v != %v", md, expected)
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue