vim-patch:8.2.3499: GUI geometry startup test fails

Problem:    GUI geometry startup test fails.
Solution:   Check string values instead of numbers

3d031a0ae7

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2022-12-05 09:52:46 +08:00
parent 78fa1f069d
commit e043dbf0aa

View File

@ -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