commit f807e5c9175b2a453aa64aea1b2d00a887d011df
parent 0566767d7dbe5b2abce8d37aab85d328629b2cc7
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 2 Feb 2026 13:37:29 +0800
test: improve check for N/A tests (#37667)
The previous conditions don't handle the case where an entire file is
N/A, which is the case for autocmd/signal_spec.lua on Windows.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua
@@ -107,13 +107,13 @@ return function(options)
local errorCount = 0
local naCheck = function(pending)
- if pending.name:find(' N/A[: ]') or pending.name:find(' N/A$') then
+ if vim.list_contains(vim.split(pending.name, '[ :]'), 'N/A') then
return true
end
if type(pending.message) ~= 'string' then
return false
end
- if pending.message:find(' N/A[: ]') or pending.message:find(' N/A$') then
+ if vim.list_contains(vim.split(pending.message, '[ :]'), 'N/A') then
return true
end
return false