From 67840c033c167cff97b0730fa31b5a3341c8ffa1 Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 23 Jun 2021 14:04:16 -0700 Subject: [PATCH] add quotes around printed unequal values so you can see confusing hidden trailing spaces --- library/lua/test_util/expect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/lua/test_util/expect.lua b/library/lua/test_util/expect.lua index deca8c44f..e52b7ef9e 100644 --- a/library/lua/test_util/expect.lua +++ b/library/lua/test_util/expect.lua @@ -24,7 +24,7 @@ function expect.nil_(value, comment) end function expect.eq(a, b, comment) - return a == b, comment, ('%s ~= %s'):format(a, b) + return a == b, comment, ('"%s" ~= "%s"'):format(a, b) end function expect.ne(a, b, comment)