diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-15 21:54:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 21:54:04 -0400 |
| commit | d8e7fbe193cb3c811e305873a1f99b9f02d36d5f (patch) | |
| tree | 1c28ab9cb3df836e149a92ca878548b1b4758f1e /src/nvim/testdir/test_functions.vim | |
| parent | b8c0fac762f4b03f0438d3888ccf3f200648b882 (diff) | |
| parent | 97288e73c27d45b0fadbd6efa437fe54bc58b5e3 (diff) | |
| download | rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.gz rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.bz2 rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.zip | |
Merge pull request #14367 from janlazo/vim-8.2.2046
vim-patch:8.2.{265,2761,2764}
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 555f549743..93f567b3a0 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1071,10 +1071,10 @@ func Test_inputlist() endfunc func Test_balloon_show() - if has('balloon_eval') - " This won't do anything but must not crash either. - call balloon_show('hi!') - endif + CheckFeature balloon_eval + + " This won't do anything but must not crash either. + call balloon_show('hi!') endfunc func Test_shellescape() @@ -1448,4 +1448,12 @@ func Test_nr2char() call assert_equal("\x80\xfc\b\xfd\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX", eval('"\<M-' .. nr2char(0x40000000) .. '>"')) endfunc +func HasDefault(msg = 'msg') + return a:msg +endfunc + +func Test_default_arg_value() + call assert_equal('msg', HasDefault()) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |