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 -- [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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202007261128.06QBS4UN558575%40masaka.moolenaar.net.