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,13 +1,13 @@
local helpers = require('test.functional.helpers')(after_each)
local t = require('test.functional.testutil')(after_each)
local Screen = require('test.functional.ui.screen')
local neq, eq, command = helpers.neq, helpers.eq, helpers.command
local clear = helpers.clear
local exc_exec, expect, eval = helpers.exc_exec, helpers.expect, helpers.eval
local exec_lua = helpers.exec_lua
local insert, pcall_err = helpers.insert, helpers.pcall_err
local matches = helpers.matches
local api = helpers.api
local feed = helpers.feed
local neq, eq, command = t.neq, t.eq, t.command
local clear = t.clear
local exc_exec, expect, eval = t.exc_exec, t.expect, t.eval
local exec_lua = t.exec_lua
local insert, pcall_err = t.insert, t.pcall_err
local matches = t.matches
local api = t.api
local feed = t.feed
describe('eval-API', function()
before_each(clear)