Patch 8.1.0204
Problem: inputlist() is not tested.
Solution: Add a test. (Dominique Pelle, closes #3240)
Files: src/testdir/test_functions.vim
*** ../vim-8.1.0203/src/testdir/test_functions.vim 2018-07-15
20:24:25.827299588 +0200
--- src/testdir/test_functions.vim 2018-07-22 19:33:58.235966937 +0200
***************
*** 810,815 ****
--- 810,826 ----
bw!
endfunc
+ func Test_inputlist()
+ call feedkeys(":let c = inputlist(['Select color:', '1. red', '2. green',
'3. blue'])\<cr>1\<cr>", 'tx')
+ call assert_equal(1, c)
+ call feedkeys(":let c = inputlist(['Select color:', '1. red', '2. green',
'3. blue'])\<cr>2\<cr>", 'tx')
+ call assert_equal(2, c)
+ call feedkeys(":let c = inputlist(['Select color:', '1. red', '2. green',
'3. blue'])\<cr>3\<cr>", 'tx')
+ call assert_equal(3, c)
+
+ call assert_fails('call inputlist("")', 'E686:')
+ endfunc
+
func Test_balloon_show()
if has('balloon_eval')
" This won't do anything but must not crash either.
*** ../vim-8.1.0203/src/version.c 2018-07-22 07:31:04.742472292 +0200
--- src/version.c 2018-07-22 19:35:05.935590559 +0200
***************
*** 795,796 ****
--- 795,798 ----
{ /* Add new patch number below this line */
+ /**/
+ 204,
/**/
--
DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
penalty. And here in Castle Anthrax, we have but one punishment
... you must tie her down on a bed ... and spank her. Come!
GIRLS: A spanking! A spanking!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.