diff --git a/tests/test-resize.lua b/tests/test-resize.lua index a9eb7168..18613b1e 100644 --- a/tests/test-resize.lua +++ b/tests/test-resize.lua @@ -276,7 +276,7 @@ table.insert(steps, function() local c = client.get()[1] assert(c:geometry().x == c.screen.workarea.x ) - assert(c:geometry().y == c.screen.workarea.y+c.screen.workarea.height/2 ) + assert(c:geometry().y == math.ceil(c.screen.workarea.y+c.screen.workarea.height/2)) assert(c:geometry().width == c.screen.workarea.width - 2*c.border_width ) assert(c:geometry().height == math.ceil(c.screen.workarea.height/2 - 2*c.border_width)) @@ -294,7 +294,7 @@ table.insert(steps, function() local c = client.get()[1] assert(c:geometry().x == c.screen.workarea.x ) - assert(c:geometry().y == c.screen.workarea.y+c.screen.workarea.height/2 ) + assert(c:geometry().y == math.ceil(c.screen.workarea.y+c.screen.workarea.height/2)) assert(c:geometry().width == math.ceil(c.screen.workarea.width/2 - 2*c.border_width) ) assert(c:geometry().height == math.ceil(c.screen.workarea.height/2 - 2*c.border_width))