Patch 8.1.1972

11 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 3, 2019, 5:38:03 PM9/3/19
to vim...@googlegroups.com

Patch 8.1.1972
Problem: No proper test for getchar().
Solution: Add a test with special characters.
Files: src/testdir/test_functions.vim


*** ../vim-8.1.1971/src/testdir/test_functions.vim 2019-09-03 17:13:32.040528491 +0200
--- src/testdir/test_functions.vim 2019-09-03 23:36:20.721716391 +0200
***************
*** 1314,1319 ****
--- 1314,1336 ----
unlet g:typed2
endfunc

+ func Test_getchar()
+ call feedkeys('a', '')
+ call assert_equal(char2nr('a'), getchar())
+
+ call test_setmouse(1, 3)
+ let v:mouse_win = 9
+ let v:mouse_winid = 9
+ let v:mouse_lnum = 9
+ let v:mouse_col = 9
+ call feedkeys("\<S-LeftMouse>", '')
+ call assert_equal("\<S-LeftMouse>", getchar())
+ call assert_equal(1, v:mouse_win)
+ call assert_equal(win_getid(1), v:mouse_winid)
+ call assert_equal(1, v:mouse_lnum)
+ call assert_equal(3, v:mouse_col)
+ endfunc
+
func Test_libcall_libcallnr()
if !has('libcall')
return
*** ../vim-8.1.1971/src/version.c 2019-09-03 23:20:00.929446231 +0200
--- src/version.c 2019-09-03 23:25:28.928334727 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1972,
/**/

--
If Apple would build a car...
... it would be powered by the sun, be reliable, five times
as fast and twice as easy to drive; but would only run on
five percent of the roads.

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages