go-pus/stream_test.go
2015-07-05 21:03:21 +01:00

20 lines
390 B
Go

// Copyright © 2015 Hraban Luyat <hraban@0brg.net>
//
// License for use of this code is detailed in the LICENSE file
package opus
import (
"strings"
"testing"
)
func Test(t *testing.T) {
// Simple testing, no actual decoding
reader := strings.NewReader("hello")
_, err := NewStream(reader)
if err == nil {
t.Fatalf("Expected error while initializing illegal opus stream")
}
}