Patch 8.1.0817
Problem: ":=" command is not tested.
Solution: Add a test. (Dominique Pelle, closes #3859)
Files: src/testdir/Make_all.mak, src/testdir/test_alot.vim,
src/testdir/test_ex_equal.vim
*** ../vim-8.1.0816/src/testdir/Make_all.mak 2019-01-24 21:57:11.574719854
+0100
--- src/testdir/Make_all.mak 2019-01-24 22:39:20.598524877 +0100
***************
*** 105,110 ****
--- 105,111 ----
test_erasebackword \
test_escaped_glob \
test_eval_stuff \
+ test_ex_equal \
test_ex_undo \
test_ex_z \
test_exit \
*** ../vim-8.1.0816/src/testdir/test_alot.vim 2018-11-10 18:54:40.656592081
+0100
--- src/testdir/test_alot.vim 2019-01-24 22:39:20.598524877 +0100
***************
*** 10,15 ****
--- 10,16 ----
source test_compiler.vim
source test_cursor_func.vim
source test_delete.vim
+ source test_ex_equal.vim
source test_ex_undo.vim
source test_ex_z.vim
source test_execute_func.vim
*** ../vim-8.1.0816/src/testdir/test_ex_equal.vim 2019-01-24
22:42:00.857403287 +0100
--- src/testdir/test_ex_equal.vim 2019-01-24 22:39:20.598524877 +0100
***************
*** 0 ****
--- 1,32 ----
+ " Test Ex := command.
+
+ func Test_ex_equal()
+ new
+ call setline(1, ["foo\tbar", "bar\tfoo"])
+
+ let a = execute('=')
+ call assert_equal("\n2", a)
+
+ let a = execute('=#')
+ call assert_equal("\n2\n 1 foo bar", a)
+
+ let a = execute('=l')
+ call assert_equal("\n2\nfoo^Ibar$", a)
+
+ let a = execute('=p')
+ call assert_equal("\n2\nfoo bar", a)
+
+ let a = execute('=l#')
+ call assert_equal("\n2\n 1 foo^Ibar$", a)
+
+ let a = execute('=p#')
+ call assert_equal("\n2\n 1 foo bar", a)
+
+ let a = execute('.=')
+ call assert_equal("\n1", a)
+
+ call assert_fails('3=', 'E16:')
+ call assert_fails('=x', 'E488:')
+
+ bwipe!
+ endfunc
*** ../vim-8.1.0816/src/version.c 2019-01-24 22:23:55.644948698 +0100
--- src/version.c 2019-01-24 22:41:22.289672995 +0100
***************
*** 789,790 ****
--- 789,792 ----
{ /* Add new patch number below this line */
+ /**/
+ 817,
/**/
--
Not too long ago, unzipping in public was illegal...
/// 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.