comparison src/testdir/test_startup.vim @ 25931:a12337b82da0 v8.2.3499

patch 8.2.3499: GUI geometry startup test fails Commit: https://github.com/vim/vim/commit/3d031a0ae791f901c0c2dedd5d8b9de137c23acc Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 11 22:57:34 2021 +0100 patch 8.2.3499: GUI geometry startup test fails Problem: GUI geometry startup test fails. Solution: Check string values instead of numbers
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Oct 2021 00:00:05 +0200
parents 70d1339c0fa0
children 671664c5faa4
comparison
equal deleted inserted replaced
25930:f6cbd4c55846 25931:a12337b82da0
534 if RunVim([], after, '-f -g -geometry 31x13+41+43') 534 if RunVim([], after, '-f -g -geometry 31x13+41+43')
535 let lines = readfile('Xtest_geometry') 535 let lines = readfile('Xtest_geometry')
536 " Depending on the GUI library and the windowing system the final size 536 " Depending on the GUI library and the windowing system the final size
537 " might be a bit different, allow for some tolerance. Tuned based on 537 " might be a bit different, allow for some tolerance. Tuned based on
538 " actual failures. 538 " actual failures.
539 call assert_inrange(31, 35, lines[0]) 539 call assert_inrange(31, 35, str2nr(lines[0]))
540 call assert_equal(13, lines[1]) 540 call assert_equal('13', lines[1])
541 call assert_equal(41, lines[2]) 541 call assert_equal('41', lines[2])
542 call assert_equal(43, lines[3]) 542 call assert_equal('43', lines[3])
543 call assert_equal([41, 43], lines[4]) 543 call assert_equal('[41, 43]', lines[4])
544 endif 544 endif
545 endif 545 endif
546 546
547 call delete('Xtest_geometry') 547 call delete('Xtest_geometry')
548 endfunc 548 endfunc