mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: assert:set_parameter('TableFormatLevel', 100) #10925
luassert uses 3 by default, which is often not enough. Instead of documenting how to increase it, let's use a more fitting (sane) default of 100 levels.
This commit is contained in:
parent
d000f02bc0
commit
dcc8fcf0b9
@ -249,11 +249,6 @@ the file).
|
||||
Configuration
|
||||
=============
|
||||
|
||||
busted (luassert) by default does not print the full result of deeply-nested
|
||||
tables. But sometimes it's useful while debugging a test.
|
||||
|
||||
assert:set_parameter('TableFormatLevel', 1000000)
|
||||
|
||||
Test behaviour is affected by environment variables. Currently supported
|
||||
(Functional, Unit, Benchmarks) (when Defined; when set to _1_; when defined,
|
||||
treated as Integer; when defined, treated as String; when defined, treated as
|
||||
|
@ -1568,7 +1568,6 @@ describe('API', function()
|
||||
return ('%s(%s)%s'):format(typ, args, rest)
|
||||
end
|
||||
end
|
||||
assert:set_parameter('TableFormatLevel', 1000000)
|
||||
require('test.unit.viml.expressions.parser_tests')(
|
||||
it_maybe_pending, _check_parsing, hl, fmtn)
|
||||
end)
|
||||
|
@ -1360,8 +1360,6 @@ describe('autoload/shada.vim', function()
|
||||
nvim_command('unlet g:__actual')
|
||||
end
|
||||
|
||||
assert:set_parameter('TableFormatLevel', 100)
|
||||
|
||||
it('works with multiple items', function()
|
||||
strings2sd_eq({{
|
||||
type=11, timestamp=0, data={
|
||||
|
@ -6,6 +6,8 @@ local lfs = require('lfs')
|
||||
local relpath = require('pl.path').relpath
|
||||
local Paths = require('test.config.paths')
|
||||
|
||||
assert:set_parameter('TableFormatLevel', 100)
|
||||
|
||||
local quote_me = '[^.%w%+%-%@%_%/]' -- complement (needn't quote)
|
||||
local function shell_quote(str)
|
||||
if string.find(str, quote_me) or str == '' then
|
||||
|
@ -451,10 +451,6 @@ local function phl2lua(pstate)
|
||||
return ret
|
||||
end
|
||||
|
||||
child_call_once(function()
|
||||
assert:set_parameter('TableFormatLevel', 1000000)
|
||||
end)
|
||||
|
||||
describe('Expressions parser', function()
|
||||
local function _check_parsing(opts, str, exp_ast, exp_highlighting_fs,
|
||||
nz_flags_exps)
|
||||
|
Loading…
Reference in New Issue
Block a user