From 5605df8e6c4f8d85173efef1f554e6fa5d8c1613 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 19 Sep 2025 14:52:25 -0400 Subject: [PATCH] fix(ci): use proper deep compare --- lua/cp/test_render.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lua/cp/test_render.lua b/lua/cp/test_render.lua index abf7cd0..a8a8d96 100644 --- a/lua/cp/test_render.lua +++ b/lua/cp/test_render.lua @@ -77,13 +77,7 @@ function M.render_test_list(test_state) end end - local line = string.format( - '%s │%s │ %s │%s', - num_col, - status_col, - time_col, - exit_col - ) + local line = string.format('%s │%s │ %s │%s', num_col, status_col, time_col, exit_col) table.insert(lines, line) if status_info.text ~= '' then @@ -98,12 +92,15 @@ function M.render_test_list(test_state) end if is_current and test_case.input and test_case.input ~= '' then - for _, input_line in ipairs(vim.split(test_case.input, '\n', { plain = true, trimempty = false })) do + for _, input_line in + ipairs(vim.split(test_case.input, '\n', { plain = true, trimempty = false })) + do table.insert(lines, input_line) end end - local separator = '─────────────────────────────────────────────────────────────' + local separator = + '─────────────────────────────────────────────────────────────' table.insert(lines, separator) end