comparison src/testdir/test_vim9_builtin.vim @ 25346:f874e7095878 v8.2.3210

patch 8.2.3210: Vim9: searchpair() sixth argument is compiled Commit: https://github.com/vim/vim/commit/dd0b287c1ec8314034a2dbb14c4267994c47520c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 24 15:44:30 2021 +0200 patch 8.2.3210: Vim9: searchpair() sixth argument is compiled Problem: Vim9: searchpair() sixth argument is compiled. (Yegappan Lakshmanan) Solution: Only compile the fifth argument.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 15:45:03 +0200
parents 37001467805f
children 75031a22be39
comparison
equal deleted inserted replaced
25345:bfa962f1a16f 25346:f874e7095878
2567 CheckScriptSuccess(lines) 2567 CheckScriptSuccess(lines)
2568 assert_equal('yes', g:caught) 2568 assert_equal('yes', g:caught)
2569 unlet g:caught 2569 unlet g:caught
2570 2570
2571 lines =<< trim END 2571 lines =<< trim END
2572 echo searchpair("a", "b", "c", "d", "1", "f") 2572 echo searchpair("a", "b", "c", "d", "f", 33)
2573 END 2573 END
2574 CheckDefAndScriptFailure2(lines, 'E1001:', 'E475:') 2574 CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: f', 'E475: Invalid argument: d')
2575
2576 lines =<< trim END
2577 def TestPair()
2578 echo searchpair("a", "b", "c", "d", "1", "f")
2579 enddef
2580 defcompile
2581 END
2582 CheckScriptSuccess(lines)
2575 2583
2576 bwipe! 2584 bwipe!
2577 enddef 2585 enddef
2578 2586
2579 def Test_searchpos() 2587 def Test_searchpos()