comparison runtime/doc/version8.txt @ 9227:ecb621205ed1

commit https://github.com/vim/vim/commit/82af8710bf8d1caeeceafb1370a052cb7d92f076 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 4 20:20:29 2016 +0200 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Jun 2016 20:30:06 +0200
parents 071f9da012fb
children be72f4201a1d
comparison
equal deleted inserted replaced
9226:b3b95960970d 9227:ecb621205ed1
1 *version8.txt* For Vim version 8.0. Last change: 2016 May 20 1 *version8.txt* For Vim version 8.0. Last change: 2016 Jun 04
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 NOTE: THIS FILE IS STILL BEING WORKED ON 6 NOTE: THIS FILE IS STILL BEING WORKED ON
100 100
101 New style tests ~ 101 New style tests ~
102 102
103 This is for Vim developers. So far writing tests for Vim has not been easy. 103 This is for Vim developers. So far writing tests for Vim has not been easy.
104 Vim 8 adds assert functions and a framework to run tests. This makes it a lot 104 Vim 8 adds assert functions and a framework to run tests. This makes it a lot
105 simpler to write tests and keep them updated. 105 simpler to write tests and keep them updated. Also new are several functions
106 that are added specifically for testing.
106 107
107 These functions have been added: 108 These functions have been added:
108 |assert_equal()| 109 |assert_equal()|
109 |assert_notequal()| 110 |assert_notequal()|
110 |assert_exception()| 111 |assert_exception()|
111 |assert_fails()| 112 |assert_fails()|
112 |assert_false()| 113 |assert_false()|
113 |assert_match()| 114 |assert_match()|
114 |assert_notmatch()| 115 |assert_notmatch()|
115 |assert_true()| 116 |assert_true()|
116 |alloc_fail()| 117 |test_alloc_fail()|
117 |disable_char_avail_for_testing()| 118 |test_disable_char_avail()|
119 |test_garbagecollect_now()|
120 |test_null_channel()|
121 |test_null_dict()|
122 |test_null_job()|
123 |test_null_list()|
124 |test_null_partial()|
125 |test_null_string()|
118 126
119 127
120 Window IDs ~ 128 Window IDs ~
121 129
122 Previously windows could only be accessed by their number. And every time a 130 Previously windows could only be accessed by their number. And every time a
123 window would open, close or move that number changes. Each window now has a 131 window would open, close or move that number changes. Each window now has a
124 unique ID, so that they are easy to find. 132 unique ID, so that they are easy to find. See |win_getid()| and |win_id2win()|.
125 133
126 134
127 Wrapping lines with indent ~ 135 Wrapping lines with indent ~
128 136
129 The 'breakindent' option has been added to be able to wrap lines without 137 The 'breakindent' option has been added to be able to wrap lines without