mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
unittests: Avoid alloc log checking errors when printing tests
This commit is contained in:
@@ -248,8 +248,7 @@ describe('Expressions parser', function()
|
|||||||
local hls = phl2lua(pstate)
|
local hls = phl2lua(pstate)
|
||||||
if exp_ast == nil then
|
if exp_ast == nil then
|
||||||
format_check(str, flags, ast, hls)
|
format_check(str, flags, ast, hls)
|
||||||
return
|
else
|
||||||
end
|
|
||||||
eq(exp_ast, ast)
|
eq(exp_ast, ast)
|
||||||
if exp_highlighting_fs then
|
if exp_highlighting_fs then
|
||||||
local exp_highlighting = {}
|
local exp_highlighting = {}
|
||||||
@@ -259,6 +258,7 @@ describe('Expressions parser', function()
|
|||||||
end
|
end
|
||||||
eq(exp_highlighting, hls)
|
eq(exp_highlighting, hls)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
lib.viml_pexpr_free_ast(east)
|
lib.viml_pexpr_free_ast(east)
|
||||||
kvi_destroy(pstate.colors)
|
kvi_destroy(pstate.colors)
|
||||||
alloc_log:clear_tmp_allocs(true)
|
alloc_log:clear_tmp_allocs(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user