diff options
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r-- | test/crossfile/completion.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index 50ebad45..c608ccab 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -307,8 +307,8 @@ TEST { } } -local originSeparator = config.get 'Lua.completion.requireSeparator' -config.set('Lua.completion.requireSeparator', '/') +local originSeparator = config.get(nil, 'Lua.completion.requireSeparator') +config.set(nil, 'Lua.completion.requireSeparator', '/') TEST { { path = 'abc.lua', @@ -331,7 +331,7 @@ TEST { }, } } -config.set('Lua.completion.requireSeparator', originSeparator) +config.set(nil, 'Lua.completion.requireSeparator', originSeparator) TEST { { @@ -390,8 +390,8 @@ TEST { } -local originRuntimePath = config.get 'Lua.runtime.path' -config.set('Lua.runtime.path', { +local originRuntimePath = config.get(nil, 'Lua.runtime.path') +config.set(nil, 'Lua.runtime.path', { '?/1.lua', }) @@ -419,10 +419,10 @@ TEST { } } -config.set('Lua.runtime.path', originRuntimePath) +config.set(nil, 'Lua.runtime.path', originRuntimePath) -local originRuntimePath = config.get 'Lua.runtime.path' -config.set('Lua.runtime.path', { +local originRuntimePath = config.get(nil, 'Lua.runtime.path') +config.set(nil, 'Lua.runtime.path', { 'D:/?/1.lua', }) @@ -445,7 +445,7 @@ TEST { } } -config.set('Lua.runtime.path', originRuntimePath) +config.set(nil, 'Lua.runtime.path', originRuntimePath) TEST { { @@ -627,7 +627,7 @@ TEST { } } -config.set('Lua.runtime.pathStrict', true) +config.set(nil, 'Lua.runtime.pathStrict', true) TEST { { path = 'f/a.lua' }, @@ -672,7 +672,7 @@ TEST { } } -config.set('Lua.runtime.pathStrict', false) +config.set(nil, 'Lua.runtime.pathStrict', false) TEST { { @@ -960,7 +960,7 @@ TEST { completion = EXISTS } -config.prop('Lua.runtime.special', 'import', 'require') +config.prop(nil, 'Lua.runtime.special', 'import', 'require') TEST { { path = 'abcde.lua', content = '' }, { |