Fixed up testing.
parent
25645f0ba9
commit
4d89c2fe03
|
@ -1,7 +1,6 @@
|
||||||
package flac
|
package flac
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,5 +9,13 @@ func TestGetMetadata(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
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