aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/api/vim_spec.lua2
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua24
-rw-r--r--test/unit/viml/expressions/parser_spec.lua16
3 files changed, 21 insertions, 21 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 841b7a584a..ff28e3d133 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -885,7 +885,7 @@ describe('api', function()
return function(next_col)
local col = next_col + (shift or 0)
return (('%s:%u:%u:%s'):format(
- 'NVim' .. group,
+ 'Nvim' .. group,
0,
col,
str)), (col + #str)
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index 54d27723f0..73fe94c056 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -869,10 +869,10 @@ describe('Ex commands coloring support', function()
end)
describe('Expressions coloring support', function()
it('works', function()
- meths.command('hi clear NVimNumber')
- meths.command('hi clear NVimNestingParenthesis')
- meths.command('hi NVimNumber guifg=Blue2')
- meths.command('hi NVimNestingParenthesis guifg=Yellow')
+ meths.command('hi clear NvimNumber')
+ meths.command('hi clear NvimNestingParenthesis')
+ meths.command('hi NvimNumber guifg=Blue2')
+ meths.command('hi NvimNestingParenthesis guifg=Yellow')
feed(':echo <C-r>=(((1)))')
screen:expect([[
|
@@ -888,8 +888,8 @@ describe('Expressions coloring support', function()
it('does not use Nvim_color_expr', function()
meths.set_var('Nvim_color_expr', 42)
-- Used to error out due to failing to get callback.
- meths.command('hi clear NVimNumber')
- meths.command('hi NVimNumber guifg=Blue2')
+ meths.command('hi clear NvimNumber')
+ meths.command('hi NvimNumber guifg=Blue2')
feed(':<C-r>=1')
screen:expect([[
|
@@ -903,12 +903,12 @@ describe('Expressions coloring support', function()
]])
end)
it('works correctly with non-ASCII and control characters', function()
- meths.command('hi clear NVimStringBody')
- meths.command('hi clear NVimStringQuote')
- meths.command('hi clear NVimInvalid')
- meths.command('hi NVimStringQuote guifg=Blue3')
- meths.command('hi NVimStringBody guifg=Blue4')
- meths.command('hi NVimInvalid guifg=Red guibg=Blue')
+ meths.command('hi clear NvimStringBody')
+ meths.command('hi clear NvimStringQuote')
+ meths.command('hi clear NvimInvalid')
+ meths.command('hi NvimStringQuote guifg=Blue3')
+ meths.command('hi NvimStringBody guifg=Blue4')
+ meths.command('hi NvimInvalid guifg=Red guibg=Blue')
feed('i<C-r>="«»"«»')
screen:expect([[
|
diff --git a/test/unit/viml/expressions/parser_spec.lua b/test/unit/viml/expressions/parser_spec.lua
index 79b19de833..73388e5dd2 100644
--- a/test/unit/viml/expressions/parser_spec.lua
+++ b/test/unit/viml/expressions/parser_spec.lua
@@ -164,14 +164,14 @@ child_call_once(function()
i = i + 1
end
for k, _ in ipairs(nvim_hl_defs) do
- eq('NVim', k:sub(1, 4))
- -- NVimInvalid
+ eq('Nvim', k:sub(1, 4))
+ -- NvimInvalid
-- 12345678901
local err, msg = pcall(function()
if k:sub(5, 11) == 'Invalid' then
- neq(nil, nvim_hl_defs['NVim' .. k:sub(12)])
+ neq(nil, nvim_hl_defs['Nvim' .. k:sub(12)])
else
- neq(nil, nvim_hl_defs['NVimInvalid' .. k:sub(5)])
+ neq(nil, nvim_hl_defs['NvimInvalid' .. k:sub(5)])
end
end)
if not err then
@@ -185,7 +185,7 @@ local function hls_to_hl_fs(hls)
local ret = {}
local next_col = 0
for i, v in ipairs(hls) do
- local group, line, col, str = v:match('^NVim([a-zA-Z]+):(%d+):(%d+):(.*)$')
+ local group, line, col, str = v:match('^Nvim([a-zA-Z]+):(%d+):(%d+):(.*)$')
col = tonumber(col)
line = tonumber(line)
assert(line == 0)
@@ -521,12 +521,12 @@ describe('Expressions parser', function()
end
local function hl(group, str, shift)
return function(next_col)
- if nvim_hl_defs['NVim' .. group] == nil then
- error(('Unknown group: NVim%s'):format(group))
+ if nvim_hl_defs['Nvim' .. group] == nil then
+ error(('Unknown group: Nvim%s'):format(group))
end
local col = next_col + (shift or 0)
return (('%s:%u:%u:%s'):format(
- 'NVim' .. group,
+ 'Nvim' .. group,
0,
col,
str)), (col + #str)