Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2thomas committed Apr 9, 2022
1 parent 33b4d11 commit 7fe44b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpio/hd44780_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ func TestHD44780DriverSetCursor(t *testing.T) {
func TestHD44780DriverSetCursorInvalid(t *testing.T) {
d := initTestHD44780Driver()
d.Start()
gobottest.Assert(t, d.SetCursor(-1, 3), errors.New("Invalid position value"))
gobottest.Assert(t, d.SetCursor(2, 3), errors.New("Invalid position value"))
gobottest.Assert(t, d.SetCursor(0, -1), errors.New("Invalid position value"))
gobottest.Assert(t, d.SetCursor(0, 16), errors.New("Invalid position value"))
gobottest.Assert(t, d.SetCursor(-1, 3), errors.New("Invalid position value (-1, 3), range (1, 15)"))
gobottest.Assert(t, d.SetCursor(2, 3), errors.New("Invalid position value (2, 3), range (1, 15)"))
gobottest.Assert(t, d.SetCursor(0, -1), errors.New("Invalid position value (0, -1), range (1, 15)"))
gobottest.Assert(t, d.SetCursor(0, 16), errors.New("Invalid position value (0, 16), range (1, 15)"))
}

func TestHD44780DriverDisplayOn(t *testing.T) {
Expand Down

0 comments on commit 7fe44b4

Please sign in to comment.