annotate src/testdir/test105.ok @ 8591:5bc958a92849 v7.4.1585

commit https://github.com/vim/vim/commit/d22a18928ebcb465393da1418bb88204b97badb1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 17 20:50:47 2016 +0100 patch 7.4.1585 Problem: Partial is not recognized everywhere. Solution: Check for partial in trans_function_name(). (Yasuhiro Matsumoto) Add a test.
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Mar 2016 21:00:04 +0100
parents 1e272e318daa
children 8af6e33e4d4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5690
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 fnamemodify('.', ':p' )[-1:] '/'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 fnamemodify('.', ':p:h' )[-1:] 'r'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 fnamemodify('test.out', ':p' )[-1:] 't'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 fnamemodify('test.out', ':.' ) 'test.out'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 fnamemodify('../testdir/a', ':.' ) 'a'
5751
1e272e318daa updated for version 7.4.220
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
6 fnamemodify('test.out', ':~' ) '~/testdir/test.out'
1e272e318daa updated for version 7.4.220
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
7 fnamemodify('../testdir/a', ':~' ) '~/testdir/a'
5690
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 fnamemodify('../testdir/a', ':t' ) 'a'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 fnamemodify('.', ':p:t' ) ''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 fnamemodify('test.out', ':p:t' ) 'test.out'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 fnamemodify('test.out', ':p:e' ) 'out'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 fnamemodify('test.out', ':p:t:e' ) 'out'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 fnamemodify('abc.fb2.tar.gz', ':r' ) 'abc.fb2.tar'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 fnamemodify('abc.fb2.tar.gz', ':r:r' ) 'abc.fb2'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 fnamemodify('abc.fb2.tar.gz', ':r:r:r' ) 'abc'
5751
1e272e318daa updated for version 7.4.220
Bram Moolenaar <bram@vim.org>
parents: 5690
diff changeset
16 substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(testdir/.*\)', '\1', '') 'testdir/abc.fb2'
5690
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 fnamemodify('abc.fb2.tar.gz', ':e' ) 'gz'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 fnamemodify('abc.fb2.tar.gz', ':e:e' ) 'tar.gz'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 fnamemodify('abc.fb2.tar.gz', ':e:e:e' ) 'fb2.tar.gz'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 fnamemodify('abc.fb2.tar.gz', ':e:e:e:e') 'fb2.tar.gz'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 fnamemodify('abc.fb2.tar.gz', ':e:e:r' ) 'tar'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 fnamemodify('abc def', ':S' ) '''abc def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 fnamemodify('abc" "def', ':S' ) '''abc" "def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 fnamemodify('abc"%"def', ':S' ) '''abc"%"def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 fnamemodify('abc'' ''def', ':S' ) '''abc''\'''' ''\''''def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 fnamemodify('abc''%''def', ':S' ) '''abc''\''''%''\''''def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 fnamemodify("abc\ndef", ':S' ) '''abc^@def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 fnamemodify("abc\ndef", ':S' ) '''abc\^@def'''
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 vim: ts=8