comparison src/testdir/test_fnamemodify.vim @ 26589:22896e358a90 v8.2.3824

patch 8.2.3824: no ASAN support for MSVC Commit: https://github.com/vim/vim/commit/6df0f2759d12ec0bc999b2963ecea4387a2bc516 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Dec 16 13:06:10 2021 +0000 patch 8.2.3824: no ASAN support for MSVC Problem: No ASAN support for MSVC. Solution: Add ASAN support and fix a coupld of uncovered problems. (Yegappan Lakshmanan, closes #9357)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Dec 2021 14:15:02 +0100
parents f165d99cda45
children 81f0d5a958b9
comparison
equal deleted inserted replaced
26588:c929ca14d8a9 26589:22896e358a90
91 91
92 " :e never includes the whole filename, so "a.b":e:e:e --> "b" 92 " :e never includes the whole filename, so "a.b":e:e:e --> "b"
93 call assert_equal('b.c', fnamemodify('a.b.c.d.e', ':r:r:e:e:e')) 93 call assert_equal('b.c', fnamemodify('a.b.c.d.e', ':r:r:e:e:e'))
94 call assert_equal('b.c', fnamemodify('a.b.c.d.e', ':r:r:e:e:e:e')) 94 call assert_equal('b.c', fnamemodify('a.b.c.d.e', ':r:r:e:e:e:e'))
95 95
96 call assert_equal('', fnamemodify('', ':p:t'))
96 call assert_equal('', fnamemodify(test_null_string(), test_null_string())) 97 call assert_equal('', fnamemodify(test_null_string(), test_null_string()))
97 endfunc 98 endfunc
98 99
99 func Test_fnamemodify_fail() 100 func Test_fnamemodify_fail()
100 call assert_fails('call fnamemodify({}, ":p")', 'E731:') 101 call assert_fails('call fnamemodify({}, ":p")', 'E731:')