sysfs: increase test coverage

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-06-10 10:58:59 +02:00
parent 29bb52ebfa
commit a128e466dd
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func TestPwmPin(t *testing.T) {
err = pin.Enable(true)
gobottest.Assert(t, err, nil)
gobottest.Assert(t, fs.Files["/sys/class/pwm/pwmchip0/pwm10/enable"].Contents, "1")
gobottest.Refute(t, pin.InvertPolarity(false), nil)
fs.Files["/sys/class/pwm/pwmchip0/pwm10/period"].Contents = "6"
data, _ := pin.Period()