Skip to content

Commit

Permalink
gpio: increase test coverage for buzzer driver
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 21, 2017
1 parent d4d2c6e commit ba90bb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpio/buzzer_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ func TestBuzzerDriverToggle(t *testing.T) {
d.Toggle()
gobottest.Assert(t, d.State(), false)
}

func TestBuzzerDriverTone(t *testing.T) {
d := initTestBuzzerDriver(newGpioTestAdaptor())
gobottest.Assert(t, d.Tone(100, 0.01), nil)
}

0 comments on commit ba90bb1

Please sign in to comment.