[audio] Test coverage for execution of audio driver

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2016-05-24 20:21:49 -07:00
parent 970324cea6
commit 68923c0822
1 changed files with 7 additions and 0 deletions

View File

@ -18,3 +18,10 @@ func TestAudioDriver(t *testing.T) {
gobottest.Assert(t, len(d.Halt()), 0)
}
func TestAudioDriverSoundWithNoFilename(t *testing.T) {
d := NewAudioDriver(NewAudioAdaptor("conn"), "dev", nil)
errors := d.Sound("")
gobottest.Assert(t, errors[0].Error(), "Requires filename for audio file.")
}