aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/105_filename_modifiers_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/105_filename_modifiers_spec.lua')
-rw-r--r--test/functional/legacy/105_filename_modifiers_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/legacy/105_filename_modifiers_spec.lua b/test/functional/legacy/105_filename_modifiers_spec.lua
index 5ce2024889..f7eb48e1da 100644
--- a/test/functional/legacy/105_filename_modifiers_spec.lua
+++ b/test/functional/legacy/105_filename_modifiers_spec.lua
@@ -44,6 +44,9 @@ describe('filename modifiers', function()
execute([=[Put fnamemodify('abc''%''def', ':S' )]=])
execute([=[Put fnamemodify("abc\ndef", ':S' )]=])
execute([=[Put expand('%:r:S') == shellescape(expand('%:r'))]=])
+ execute([=[new foo.txt]=])
+ execute([=[Put join([expand('%:r'), expand('%:r:S'), expand('%')], ',')]=])
+ execute([=[quit]=])
execute([=[set shell=tcsh]=])
execute([=[Put fnamemodify("abc\ndef", ':S' )]=])
execute([=[1 delete _]=])
@@ -77,6 +80,7 @@ describe('filename modifiers', function()
fnamemodify('abc'' ''def', ':S' ) '''abc''\'''' ''\''''def'''
fnamemodify('abc''%''def', ':S' ) '''abc''\''''%''\''''def'''
fnamemodify("abc\ndef", ':S' ) '''abc^@def'''
+ join([expand('%:r'), expand('%:r:S'), expand('%')], ',') 'foo,''foo'',foo.txt'
expand('%:r:S') == shellescape(expand('%:r')) 1
fnamemodify("abc\ndef", ':S' ) '''abc\^@def''']=])
end)