From e043dbf0aaaed75c00196fc6ccd094bb3b61da65 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 5 Dec 2022 09:52:46 +0800 Subject: 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 --- src/nvim/testdir/test_startup.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit