]> Sergey Matveev's repositories - go-opus.git/commitdiff
Better names for stream unit tests
authorHraban Luyat <hraban@0brg.net>
Thu, 9 Jul 2015 16:38:02 +0000 (16:38 +0000)
committerHraban Luyat <hraban@0brg.net>
Thu, 9 Jul 2015 16:38:02 +0000 (16:38 +0000)
stream_test.go

index 0654a5299b26419955b39dbb836db47aa834da37..0fa444e2cbff4c7654935aa9fab01cd7f0074050 100644 (file)
@@ -13,7 +13,7 @@ import (
        "testing"
 )
 
-func TestStream(t *testing.T) {
+func TestStreamIllegal(t *testing.T) {
        // Simple testing, no actual decoding
        reader := strings.NewReader("hello test test this is not a legal Opus stream")
        _, err := NewStream(reader)
@@ -45,7 +45,7 @@ func readStreamWav(stream *Stream) ([]byte, error) {
        }
 }
 
-func TestFile(t *testing.T) {
+func TestStream(t *testing.T) {
        // Simple testing, no actual decoding
        reader, err := os.Open("testdata/speech_8.opus")
        if err != nil {