test: improve test conventions

Work on https://github.com/neovim/neovim/issues/27004.
This commit is contained in:
dundargoc
2024-04-08 11:03:20 +02:00
committed by dundargoc
parent 978962f9a0
commit 7035125b2b
488 changed files with 4176 additions and 4235 deletions

View File

@@ -1,10 +1,10 @@
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local exec_lua = helpers.exec_lua
local eq = helpers.eq
local is_os = helpers.is_os
local skip = helpers.skip
local write_file = require('test.helpers').write_file
local t = require('test.functional.testutil')(after_each)
local clear = t.clear
local exec_lua = t.exec_lua
local eq = t.eq
local is_os = t.is_os
local skip = t.skip
local write_file = t.write_file
describe('URI methods', function()
before_each(function()
@@ -206,7 +206,7 @@ describe('URI methods', function()
it('Windows paths should not be treated as uris', function()
skip(not is_os('win'), 'Not applicable on non-Windows')
local file = helpers.tmpname()
local file = t.tmpname()
write_file(file, 'Test content')
local test_case = string.format(
[[