From 462681d9a517e1c3e18a47c2fdf6189b4d1ef7eb Mon Sep 17 00:00:00 2001 From: Corey Williamson Date: Mon, 22 Jul 2024 20:03:22 -0500 Subject: [PATCH] spec: use Lua 5.1 friendly escape sequences --- spec/api/decoration_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/api/decoration_spec.lua b/spec/api/decoration_spec.lua index 51026b9..f471237 100644 --- a/spec/api/decoration_spec.lua +++ b/spec/api/decoration_spec.lua @@ -8,7 +8,7 @@ describe("decoration api", function() decoration.render_ansi(buf, " ", {}) decoration.render_ansi(buf, "world", { ansi_background_color = 7 }) local result = table.concat(buf) - local expected = "\x1b[34mhello\x1b[0m \x1b[47mworld\x1b[0m" + local expected = "\27[34mhello\27[0m \27[47mworld\27[0m" assert.are.equal(expected, result) end)