Skip to content

Commit

Permalink
i2c: just one more tests for Connection
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Feb 14, 2017
1 parent 7df004d commit 34befb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/i2c/i2c_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,9 @@ func TestI2CWriteWordData(t *testing.T) {
err := c.WriteWordData(0x01, 0x01)
gobottest.Assert(t, err, nil)
}

func TestI2CWriteBlockDataErrNotSupported(t *testing.T) {
c := NewConnection(initI2CDevice(), 0x06)
err := c.WriteBlockData(0x01, []byte{0x01, 0x02})
gobottest.Refute(t, err, nil)
}

0 comments on commit 34befb5

Please sign in to comment.