aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 09:52:46 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-05 09:55:18 +0800
commite043dbf0aaaed75c00196fc6ccd094bb3b61da65 (patch)
tree8953e58ab77fa1d2541da92ae32bebdb2738b95b
parent78fa1f069ddfdc65d2452056d051678d1242e034 (diff)
downloadrneovim-e043dbf0aaaed75c00196fc6ccd094bb3b61da65.tar.gz
rneovim-e043dbf0aaaed75c00196fc6ccd094bb3b61da65.tar.bz2
rneovim-e043dbf0aaaed75c00196fc6ccd094bb3b61da65.zip
vim-patch:8.2.3499: GUI geometry startup test fails
Problem: GUI geometry startup test fails. Solution: Check string values instead of numbers https://github.com/vim/vim/commit/3d031a0ae791f901c0c2dedd5d8b9de137c23acc Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_startup.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim
index 96a5c96da1..7db033cb65 100644
--- a/src/nvim/testdir/test_startup.vim
+++ b/src/nvim/testdir/test_startup.vim
@@ -525,11 +525,11 @@ func Test_geometry()
" 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, 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])
+ 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