From 7fe44b4267c21f02da400b85c0e48a70bef0c571 Mon Sep 17 00:00:00 2001 From: Thomas Kohler Date: Sat, 9 Apr 2022 09:57:36 +0200 Subject: [PATCH] fix test --- drivers/gpio/hd44780_driver_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/hd44780_driver_test.go b/drivers/gpio/hd44780_driver_test.go index 6929c62ba..54a4b70d7 100644 --- a/drivers/gpio/hd44780_driver_test.go +++ b/drivers/gpio/hd44780_driver_test.go @@ -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) {