summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_func.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-05 17:51:23 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-05 17:51:23 +0200
commitc08cc72947fdfab484f53c5d9bbea662bc5a9c8f (patch)
treea8932d9a70fc31e6e567bba1cf56e776a3104cc1 /src/testdir/test_vim9_func.vim
parent036c2cf719e3de445779a275514030be66e26883 (diff)
downloadvim-git-c08cc72947fdfab484f53c5d9bbea662bc5a9c8f.tar.gz
patch 8.2.1603: Vim9: cannot use "true" with getchar()v8.2.1603
Problem: Vim9: cannot use "true" with getchar(). Solution: use tv_get_bool_chk(). (closes #6874)
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 7303db997..3453f4488 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1505,6 +1505,10 @@ def Test_getbufinfo()
bwipe Xtestfile1 Xtestfile2
enddef
+def Test_getchar()
+ assert_equal(0, getchar(true))
+enddef
+
def Fibonacci(n: number): number
if n < 2
return n