comparison src/testdir/test_filter_map.vim @ 26684:2126feddeda6 v8.2.3871

patch 8.2.3871: list.c contains code for dict and blob Commit: https://github.com/vim/vim/commit/f973eeb4911de09258e84cb2248dc0f9392824b4 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Dec 22 18:19:26 2021 +0000 patch 8.2.3871: list.c contains code for dict and blob Problem: List.c contains code for dict and blob. Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan, closes #9386)
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Dec 2021 19:30:04 +0100
parents 0d2a709e2ff0
children 31c23760d590
comparison
equal deleted inserted replaced
26683:d267ab922b57 26684:2126feddeda6
180 call assert_equal('cde', map('abc', LSTART i, x LMIDDLE nr2char(char2nr(x) + 2) LEND)) 180 call assert_equal('cde', map('abc', LSTART i, x LMIDDLE nr2char(char2nr(x) + 2) LEND))
181 call assert_equal('[あ][i][う][え][お]', map('あiうえお', LSTART i, x LMIDDLE '[' .. x .. ']' LEND)) 181 call assert_equal('[あ][i][う][え][お]', map('あiうえお', LSTART i, x LMIDDLE '[' .. x .. ']' LEND))
182 call assert_equal('', map('abc', LSTART i, x LMIDDLE '' LEND)) 182 call assert_equal('', map('abc', LSTART i, x LMIDDLE '' LEND))
183 call assert_equal('', map('', "v:val == 'a'")) 183 call assert_equal('', map('', "v:val == 'a'"))
184 call assert_equal('', map(test_null_string(), "v:val == 'a'")) 184 call assert_equal('', map(test_null_string(), "v:val == 'a'"))
185 call assert_fails('echo map("abc", "10")', 'E928:')
185 END 186 END
186 call CheckLegacyAndVim9Success(lines) 187 call CheckLegacyAndVim9Success(lines)
187 188
188 " mapnew() 189 " mapnew()
189 let lines =<< trim END 190 let lines =<< trim END