aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_startup.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 10:22:47 +0800
committerGitHub <noreply@github.com>2022-12-05 10:22:47 +0800
commit1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a (patch)
tree02fdc53f0d65f92775914890a55cf16c4bea4c01 /src/nvim/testdir/test_startup.vim
parentb098e7971fdf8ed3f7d0c52aff0ce126c34ff3c8 (diff)
parent9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb (diff)
downloadrneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.tar.gz
rneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.tar.bz2
rneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.zip
Merge pull request #21292 from zeertzjq/vim-8.2.1195
vim-patch:8.2.{1195,1197,2240,3108,3109,3495,3499,3526,5145}
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
-rw-r--r--src/nvim/testdir/test_startup.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim
index 42467c5508..7db033cb65 100644
--- a/src/nvim/testdir/test_startup.vim
+++ b/src/nvim/testdir/test_startup.vim
@@ -522,7 +522,14 @@ func Test_geometry()
[CODE]
if RunVim([], after, '-f -g -geometry 31x13+41+43')
let lines = readfile('Xtest_geometry')
- call assert_equal(['31', '13', '41', '43', '[41, 43]'], lines)
+ " Depending on the GUI library and the windowing system the final size
+ " might be a bit different, allow for some tolerance. Tuned based on
+ " actual failures.
+ call assert_inrange(31, 35, str2nr(lines[0]))
+ call assert_equal('13', lines[1])
+ call assert_equal('41', lines[2])
+ call assert_equal('43', lines[3])
+ call assert_equal('[41, 43]', lines[4])
endif
endif