aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/window_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-11-25 17:06:53 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-11-25 17:06:53 -0500
commitc83dfa20bd275ad7f5ea92a4aac2686f9111e602 (patch)
tree55b2cf01f99c8fb37d3966226ca245a9cb48ef5e /test/functional/api/window_spec.lua
parent3bbbeaf2c9658222f31c29bc0ab27b9f125fb27c (diff)
parentdb914e8b6139e111ed0a744f78a704f35e1774ba (diff)
downloadrneovim-c83dfa20bd275ad7f5ea92a4aac2686f9111e602.tar.gz
rneovim-c83dfa20bd275ad7f5ea92a4aac2686f9111e602.tar.bz2
rneovim-c83dfa20bd275ad7f5ea92a4aac2686f9111e602.zip
Merge pull request #1543 from jszakmeister/fix-broken-functional-tests
Fix broken functional test.
Diffstat (limited to 'test/functional/api/window_spec.lua')
-rw-r--r--test/functional/api/window_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua
index 4c867d2f5d..f3ac90de21 100644
--- a/test/functional/api/window_spec.lua
+++ b/test/functional/api/window_spec.lua
@@ -104,7 +104,7 @@ describe('window_* functions', function()
nvim('set_current_window', nvim('get_windows')[2])
nvim('command', 'split')
eq(window('get_height', nvim('get_windows')[2]),
- window('get_height', nvim('get_windows')[1]) / 2)
+ math.floor(window('get_height', nvim('get_windows')[1]) / 2))
window('set_height', nvim('get_windows')[2], 2)
eq(2, window('get_height', nvim('get_windows')[2]))
end)
@@ -118,7 +118,7 @@ describe('window_* functions', function()
nvim('set_current_window', nvim('get_windows')[2])
nvim('command', 'vsplit')
eq(window('get_width', nvim('get_windows')[2]),
- window('get_width', nvim('get_windows')[1]) / 2)
+ math.floor(window('get_width', nvim('get_windows')[1]) / 2))
window('set_width', nvim('get_windows')[2], 2)
eq(2, window('get_width', nvim('get_windows')[2]))
end)