mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 06:18:50 +00:00
refactor: format test/*
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, eq, ok = helpers.clear, helpers.eq, helpers.ok
|
||||
local neq, command, funcs = helpers.neq, helpers.command, helpers.funcs
|
||||
local clear, eq, ok = helpers.clear, helpers.eq, helpers.ok
|
||||
local neq, command, funcs = helpers.neq, helpers.command, helpers.funcs
|
||||
local reltime, reltimestr, reltimefloat = funcs.reltime, funcs.reltimestr, funcs.reltimefloat
|
||||
|
||||
describe('reltimestr(), reltimefloat()', function()
|
||||
@@ -15,7 +15,7 @@ describe('reltimestr(), reltimefloat()', function()
|
||||
neq('0.0', reltimestr(elapsed))
|
||||
ok(reltimefloat(elapsed) > 0.0)
|
||||
-- original vim test for < 0.1, but easily fails on travis
|
||||
ok(nil ~= string.match(reltimestr(elapsed), "0%."))
|
||||
ok(nil ~= string.match(reltimestr(elapsed), '0%.'))
|
||||
ok(reltimefloat(elapsed) < 1.0)
|
||||
|
||||
local same = reltime(now, now)
|
||||
@@ -29,7 +29,7 @@ describe('reltimestr(), reltimefloat()', function()
|
||||
neq('0.0', reltimestr(differs))
|
||||
ok(reltimefloat(differs) > 0.0)
|
||||
-- original vim test for < 0.1, but easily fails on travis
|
||||
ok(nil ~= string.match(reltimestr(differs), "0%."))
|
||||
ok(nil ~= string.match(reltimestr(differs), '0%.'))
|
||||
ok(reltimefloat(differs) < 1.0)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user