patch 8.1.0204: inputlist() is not tested
Problem: inputlist() is not tested.
Solution: Add a test. (Dominique Pelle, closes #3240)
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index 5cfaaa0..14181fb 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -810,6 +810,17 @@
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.
diff --git a/src/version.c b/src/version.c
index 66fabd9..735ac0e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -794,6 +794,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 204,
+/**/
203,
/**/
202,