diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-24 22:58:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-24 22:58:31 +0200 |
commit | 4c313b13fb7bfa694ec6d2a13175e8650c007b2a (patch) | |
tree | 36db216d522e889c7d86027dfa69f8d5a686c2ed /src/testdir/test_file_perm.vim | |
parent | a8eee21e75324d199acb1663cb5009e03014a13a (diff) | |
download | vim-git-4c313b13fb7bfa694ec6d2a13175e8650c007b2a.tar.gz |
patch 8.1.1925: more functions can be used as methodsv8.1.1925
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/testdir/test_file_perm.vim')
-rw-r--r-- | src/testdir/test_file_perm.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_file_perm.vim b/src/testdir/test_file_perm.vim index 0dba6a708..39501684f 100644 --- a/src/testdir/test_file_perm.vim +++ b/src/testdir/test_file_perm.vim @@ -2,10 +2,10 @@ func Test_file_perm() call assert_equal('', getfperm('Xtest')) - call assert_equal(0, setfperm('Xtest', 'r--------')) + call assert_equal(0, 'Xtest'->setfperm('r--------')) call writefile(['one'], 'Xtest') - call assert_true(len(getfperm('Xtest')) == 9) + call assert_true(len('Xtest'->getfperm()) == 9) call assert_equal(1, setfperm('Xtest', 'rwx------')) if has('win32') |