diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-13 15:59:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-13 15:59:49 -0700 |
commit | c9baaa9200e95d559b91e21e0b3da087de2de629 (patch) | |
tree | 37c3ed0c97fe3f4789430af19d6bc9511f85ab89 /test/functional/eval/timer_spec.lua | |
parent | aa87dd2b8943d7c52e9af657c76e60434fb35c95 (diff) | |
parent | 78418e17e90fb06a4a0a09bbef88d36428d1f938 (diff) | |
download | rneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.tar.gz rneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.tar.bz2 rneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.zip |
Merge #9095 'CI/travis/macOS: fix missing pip3'
Diffstat (limited to 'test/functional/eval/timer_spec.lua')
-rw-r--r-- | test/functional/eval/timer_spec.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/eval/timer_spec.lua b/test/functional/eval/timer_spec.lua index 8afc3592cc..040ab30522 100644 --- a/test/functional/eval/timer_spec.lua +++ b/test/functional/eval/timer_spec.lua @@ -1,6 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') -local ok, feed, eq, eval = helpers.ok, helpers.feed, helpers.eq, helpers.eval +local feed, eq, eval = helpers.feed, helpers.eq, helpers.eval local source, nvim_async, run = helpers.source, helpers.nvim_async, helpers.run local clear, command, funcs = helpers.clear, helpers.command, helpers.funcs local curbufmeths = helpers.curbufmeths @@ -72,7 +72,8 @@ describe('timers', function() run(nil, nil, nil, 300) feed("<cr>") local diff = eval("g:val") - count - ok(0 <= diff and diff <= 4) + assert(0 <= diff and diff <= 4, + 'expected (0 <= diff <= 4), got: '..tostring(diff)) end) it('are triggered in blocking getchar() call', function() @@ -81,7 +82,7 @@ describe('timers', function() run(nil, nil, nil, 300) feed("c") local count = eval("g:val") - ok(count >= 4) + assert(count >= 4, 'expected count >= 4, got: '..tostring(count)) eq(99, eval("g:c")) end) @@ -142,9 +143,10 @@ describe('timers', function() local count = eval("g:val") run(nil, nil, nil, 300) local count2 = eval("g:val") - ok(4 <= count and count <= 7) -- when count is eval:ed after timer_stop this should be non-racy eq(count, count2) + assert(4 <= count and count <= 7, + 'expected (4 <= count <= 7), got: '..tostring(count)) end) it('can be stopped from the handler', function() |