mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #1543 from jszakmeister/fix-broken-functional-tests
Fix broken functional test.
This commit is contained in:
commit
c83dfa20bd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user