package raudio import ( "github.com/BeatGlow/beatglow/config" "github.com/BeatGlow/beatglow/player" "testing" ) func TestRegisteredPlayer(t *testing.T) { p, err := player.New(&config.Player{Type: "raudio", Host: "localhost:6601"}) if err != nil { t.Fatal(err) } if p.Name() != "rAudio" || p.String() != "rAudio@mpd@localhost:6601" { t.Fatalf("unexpected player: %s (%s)", p.Name(), p.String()) } }