Patch 8.2.1296

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 26, 2020, 7:28:13 AM7/26/20
to vim...@googlegroups.com

Patch 8.2.1296
Problem: Some part of using 'smarcase' was not tested.
Solution: Add more tests. (Dominique Pellé, closes #6538)
Files: src/testdir/test_search.vim


*** ../vim-8.2.1295/src/testdir/test_search.vim 2020-07-11 22:14:54.318422203 +0200
--- src/testdir/test_search.vim 2020-07-26 13:25:08.841772054 +0200
***************
*** 608,614 ****
endfunc

func Test_search_cmdline7()
! " Test that an pressing <c-g> in an empty command line
" does not move the cursor
CheckOption incsearch

--- 608,614 ----
endfunc

func Test_search_cmdline7()
! " Test that pressing <c-g> in an empty command line
" does not move the cursor
CheckOption incsearch

***************
*** 1642,1647 ****
--- 1642,1666 ----

set ignorecase& smartcase&
close!
+ endfun
+
+ " Test 'smartcase' with utf-8.
+ func Test_search_smartcase_utf8()
+ new
+ let save_enc = &encoding
+ set encoding=utf8 ignorecase smartcase
+
+ call setline(1, 'Café cafÉ')
+ 1s/café/x/g
+ call assert_equal('x x', getline(1))
+
+ call setline(1, 'Café cafÉ')
+ 1s/cafÉ/x/g
+ call assert_equal('Café x', getline(1))
+
+ set ignorecase& smartcase&
+ let &encoding = save_enc
+ close!
endfunc

" Test searching past the end of a file
*** ../vim-8.2.1295/src/version.c 2020-07-26 12:52:53.556746191 +0200
--- src/version.c 2020-07-26 13:26:51.421283140 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1296,
/**/

--
From "know your smileys":
;-0 Can't find shift key
,-9 Kann Umschalttaste nicht finden

/// 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