diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 12:20:19 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-26 12:20:19 +0800 | 
| commit | a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc (patch) | |
| tree | c22f82a0c739a99729d3d07a2af228b31dacaf4e /test/functional/vimscript/reltime_spec.lua | |
| parent | 5d159a7faad913852c65c81dcc976cf4be902fc1 (diff) | |
| parent | 519e4c44720be9b0c8584cb53a902bc1e5bfe3a3 (diff) | |
| download | rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.gz rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.bz2 rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.zip  | |
Merge pull request #18267 from zeertzjq/test-eq-arg-order
test: correct order of arguments to eq() and neq()
Diffstat (limited to 'test/functional/vimscript/reltime_spec.lua')
| -rw-r--r-- | test/functional/vimscript/reltime_spec.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/vimscript/reltime_spec.lua b/test/functional/vimscript/reltime_spec.lua index d87943e485..6d661402a6 100644 --- a/test/functional/vimscript/reltime_spec.lua +++ b/test/functional/vimscript/reltime_spec.lua @@ -12,7 +12,7 @@ describe('reltimestr(), reltimefloat()', function()      local later = reltime()      local elapsed = reltime(now) -    neq(reltimestr(elapsed), '0.0') +    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%.")) @@ -26,7 +26,7 @@ describe('reltimestr(), reltimefloat()', function()      eq(0.0, reltimefloat(same))      local differs = reltime(now, later) -    neq(reltimestr(differs), '0.0') +    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%."))  | 
