diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-18 23:01:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-18 23:01:56 +0200 |
commit | 073e4b92e613d22ce7b16e0fbf5c0e40cb5f9b2c (patch) | |
tree | 627a153c9bb3076e512a6b0209227b66d5255ce5 /src/testdir/test_popup.vim | |
parent | 0a52df50a0e8fce6f5e0eb5f5373dcd0fa24d83a (diff) |
patch 8.1.1888: more functions can be used as methodsv8.1.1888
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index d9f561bc7f..6c86d6936a 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -758,9 +758,8 @@ func Test_popup_and_previewwindow_dump() endfunc func Test_balloon_split() - if !exists('*balloon_split') - return - endif + CheckFunction balloon_split + call assert_equal([ \ 'tempname: 0x555555e380a0 "/home/mool/.viminfz.tmp"', \ ], balloon_split( @@ -771,13 +770,14 @@ func Test_balloon_split() \ ], balloon_split( \ 'one two three four one two three four one two three four')) - call assert_equal([ - \ 'struct = {', - \ ' one = 1,', - \ ' two = 2,', - \ ' three = 3}', - \ ], balloon_split( - \ 'struct = {one = 1, two = 2, three = 3}')) + eval 'struct = {one = 1, two = 2, three = 3}' + \ ->balloon_split() + \ ->assert_equal([ + \ 'struct = {', + \ ' one = 1,', + \ ' two = 2,', + \ ' three = 3}', + \ ]) call assert_equal([ \ 'struct = {', |