1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-13 19:29:10 +08:00

fix specs

This commit is contained in:
Ranjib Dey 2016-06-14 09:16:05 -07:00 committed by deadprogram
parent a14e50d9ea
commit a589be6491

View File

@ -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) {