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_stat.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_stat.vim')
-rw-r--r-- | src/testdir/test_stat.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_stat.vim b/src/testdir/test_stat.vim index e48e88766..8ec2a42c2 100644 --- a/src/testdir/test_stat.vim +++ b/src/testdir/test_stat.vim @@ -10,7 +10,7 @@ func CheckFileTime(doSleep) let fl = ['Hello World!'] for fname in fnames call writefile(fl, fname) - call add(times, getftime(fname)) + call add(times, fname->getftime()) if a:doSleep sleep 1 endif @@ -19,8 +19,8 @@ func CheckFileTime(doSleep) let time_correct = (times[0] <= times[1] && times[1] <= times[2]) if a:doSleep || time_correct call assert_true(time_correct, printf('Expected %s <= %s <= %s', times[0], times[1], times[2])) - call assert_equal(strlen(fl[0] . "\n"), getfsize(fnames[0])) - call assert_equal('file', getftype(fnames[0])) + call assert_equal(strlen(fl[0] . "\n"), fnames[0]->getfsize()) + call assert_equal('file', fnames[0]->getftype()) call assert_equal('rw-', getfperm(fnames[0])[0:2]) let result = 1 endif |