From 9954e435211ea43a13e79dfc8e048715c72232d3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 2 Mar 2019 12:51:03 -0500 Subject: [PATCH] tests: Use the same string for both notification lines. Otherwise you cannot compare the width since `r` is thinner than `z` in some non-monospace fonts. --- tests/test-naughty-legacy.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-naughty-legacy.lua b/tests/test-naughty-legacy.lua index 6397095c..07b33d1e 100644 --- a/tests/test-naughty-legacy.lua +++ b/tests/test-naughty-legacy.lua @@ -748,10 +748,10 @@ table.insert(steps, function() assert(n.width > width) assert(n.height == height) width, height = n.width, n.height - naughty.replace_text(n, "foo", "bar\nbaz") + naughty.replace_text(n, "foo", "bar\nbar") assert(n.title == "foo") - assert(n.message == "bar\nbaz") - assert(n.text == "bar\nbaz") + assert(n.message == "bar\nbar") + assert(n.text == "bar\nbar") assert(n.width < width) assert(n.height > height) width, height = n.width, n.height