From 08afa4888be01d9610fe7514b7e101921cb3ef5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 1 Sep 2024 14:50:28 +0000 Subject: [PATCH] CI(bot): Generate docs and format --- doc/nordic.nvim.txt | 2 +- lua/nordic/tests/init.lua | 8 ++++---- lua/nordic/tests/utils.lua | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/nordic.nvim.txt b/doc/nordic.nvim.txt index 08cf579..047ef91 100644 --- a/doc/nordic.nvim.txt +++ b/doc/nordic.nvim.txt @@ -1,4 +1,4 @@ -*nordic.nvim.txt* For NVIM v0.8.0 Last change: 2024 August 17 +*nordic.nvim.txt* For NVIM v0.8.0 Last change: 2024 September 01 ============================================================================== Table of Contents *nordic.nvim-table-of-contents* diff --git a/lua/nordic/tests/init.lua b/lua/nordic/tests/init.lua index de8944a..9853f61 100644 --- a/lua/nordic/tests/init.lua +++ b/lua/nordic/tests/init.lua @@ -8,10 +8,10 @@ function M.assert_eq(left, right, message) local file_name = info.short_src local line_number = info.currentline - print("Equal assertion failed at \"" .. file_name .. ":" .. line_number .. "\"") - print("Message: " .. message) - print("Left:\n" .. vim.inspect(left)) - print("Right:\n" .. vim.inspect(right)) + print('Equal assertion failed at "' .. file_name .. ':' .. line_number .. '"') + print('Message: ' .. message) + print('Left:\n' .. vim.inspect(left)) + print('Right:\n' .. vim.inspect(right)) end end diff --git a/lua/nordic/tests/utils.lua b/lua/nordic/tests/utils.lua index 29ab37d..f412234 100644 --- a/lua/nordic/tests/utils.lua +++ b/lua/nordic/tests/utils.lua @@ -46,8 +46,11 @@ assert_eq(U.merge({}, {}), {}, 'U.merge({}, {}) should return an empty table') assert_eq(U.merge(nil, nil), {}, 'U.merge(nil, nil) should return an empty table') assert_eq(U.merge(nil, { a = 1 }), { a = 1 }, 'U.merge(nil, {a = 1}) should return {a = 1}') assert_eq(U.merge({ a = 1 }, nil), { a = 1 }, 'U.merge({a = 1}, nil) should return {a = 1}') -assert_eq(U.merge({ a = 1, b = 3 }, { b = 2, c = 4 }), { a = 1, b = 2, c = 4 }, - 'U.merge({a = 1, b = 3}, {b = 2, c = 4}) should return {a = 1, b = 2, c = 4}') +assert_eq( + U.merge({ a = 1, b = 3 }, { b = 2, c = 4 }), + { a = 1, b = 2, c = 4 }, + 'U.merge({a = 1, b = 3}, {b = 2, c = 4}) should return {a = 1, b = 2, c = 4}' +) -- Colors.