summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cindent.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-23 22:31:37 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-23 22:31:37 +0200
commit1a3a89168d61c2fed91cbca812cf1c6983901b79 (patch)
treea28bb59bc78f9832066fe00c551eefaafc4b8daa /src/testdir/test_cindent.vim
parentd019039ccd7cbeae8923db20383a241d7fc77e2c (diff)
patch 8.1.1915: more functions can be used as methodsv8.1.1915
Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
Diffstat (limited to 'src/testdir/test_cindent.vim')
-rw-r--r--src/testdir/test_cindent.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim
index a8a2345577..e12e457876 100644
--- a/src/testdir/test_cindent.vim
+++ b/src/testdir/test_cindent.vim
@@ -121,9 +121,9 @@ func Test_cindent_func()
new
setlocal cindent
call setline(1, ['int main(void)', '{', 'return 0;', '}'])
- call assert_equal(cindent(0), -1)
- call assert_equal(cindent(3), &sw)
- call assert_equal(cindent(line('$')+1), -1)
+ call assert_equal(-1, cindent(0))
+ call assert_equal(&sw, 3->cindent())
+ call assert_equal(-1, cindent(line('$')+1))
bwipe!
endfunc