summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_func.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-04 18:35:26 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-04 18:35:26 +0200
commitfe136c9a85412f4bdb5de70ef8416af5fa382b28 (patch)
treeed8e13e406f5623d3f9d0665dae559f979dad06f /src/testdir/test_vim9_func.vim
parentb936b79424d435b83cdebed5507a9d3800e66e6c (diff)
downloadvim-git-fe136c9a85412f4bdb5de70ef8416af5fa382b28.tar.gz
patch 8.2.1590: Vim9: bufnr() doesn't take "true" argumentv8.2.1590
Problem: Vim9: bufnr() doesn't take "true" argument. Solution: use tv_get_bool_chk(). (closes #6863)
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-rw-r--r--src/testdir/test_vim9_func.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index f79c2e0bd..ad3268af5 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1327,6 +1327,10 @@ enddef
def Test_bufnr()
let buf = bufnr()
assert_equal(buf, bufnr('%'))
+
+ buf = bufnr('Xdummy', true)
+ assert_notequal(-1, buf)
+ exe 'bwipe! ' .. buf
enddef
def Test_col()