mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-13 19:29:10 +08:00
fix specs
This commit is contained in:
parent
a14e50d9ea
commit
a589be6491
@ -70,18 +70,18 @@ func TestDirectPinDriverHalt(t *testing.T) {
|
||||
|
||||
func TestDirectPinDriverOff(t *testing.T) {
|
||||
d := initTestDirectPinDriver(newGpioTestAdaptor("adaptor"))
|
||||
gobot.Refute(t, d.DigitalWrite(0), nil)
|
||||
gobottest.Refute(t, d.DigitalWrite(0), nil)
|
||||
|
||||
d = initTestDirectPinDriver(&gpioTestBareAdaptor{})
|
||||
gobot.Assert(t, d.DigitalWrite(0), ErrDigitalWriteUnsupported)
|
||||
gobottest.Assert(t, d.DigitalWrite(0), ErrDigitalWriteUnsupported)
|
||||
}
|
||||
|
||||
func TestDirectPinDriverOn(t *testing.T) {
|
||||
d := initTestDirectPinDriver(newGpioTestAdaptor("adaptor"))
|
||||
gobot.Refute(t, d.DigitalWrite(1), nil)
|
||||
gobottest.Refute(t, d.DigitalWrite(1), nil)
|
||||
|
||||
d = initTestDirectPinDriver(&gpioTestBareAdaptor{})
|
||||
gobot.Assert(t, d.DigitalWrite(1), ErrDigitalWriteUnsupported)
|
||||
gobottest.Assert(t, d.DigitalWrite(1), ErrDigitalWriteUnsupported)
|
||||
}
|
||||
|
||||
func TestDirectPinDriverDigitalWrite(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user