Mercurial > vim
comparison src/testdir/test_cd.vim @ 17837:f71ee7b04f0b v8.1.1915
patch 8.1.1915: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/1a3a89168d61c2fed91cbca812cf1c6983901b79
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 23 22:31:37 2019 +0200
patch 8.1.1915: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 23 Aug 2019 22:45:04 +0200 |
parents | bcc343175103 |
children | 4935244c1128 |
comparison
equal
deleted
inserted
replaced
17836:a3061757584b | 17837:f71ee7b04f0b |
---|---|
83 tabfirst | 83 tabfirst |
84 call chdir('..') | 84 call chdir('..') |
85 call assert_equal('y', fnamemodify(getcwd(1, 2), ':t')) | 85 call assert_equal('y', fnamemodify(getcwd(1, 2), ':t')) |
86 call assert_equal('z', fnamemodify(getcwd(3, 2), ':t')) | 86 call assert_equal('z', fnamemodify(getcwd(3, 2), ':t')) |
87 tabnext | wincmd t | 87 tabnext | wincmd t |
88 call chdir('..') | 88 eval '..'->chdir() |
89 call assert_equal('Xdir', fnamemodify(getcwd(1, 2), ':t')) | 89 call assert_equal('Xdir', fnamemodify(getcwd(1, 2), ':t')) |
90 call assert_equal('Xdir', fnamemodify(getcwd(2, 2), ':t')) | 90 call assert_equal('Xdir', fnamemodify(getcwd(2, 2), ':t')) |
91 call assert_equal('z', fnamemodify(getcwd(3, 2), ':t')) | 91 call assert_equal('z', fnamemodify(getcwd(3, 2), ':t')) |
92 call assert_equal('testdir', fnamemodify(getcwd(1, 1), ':t')) | 92 call assert_equal('testdir', fnamemodify(getcwd(1, 1), ':t')) |
93 3wincmd w | 93 3wincmd w |