|
1 | | -*eval.txt* For Vim version 8.0. Last change: 2017 Mar 09 |
| 1 | +*eval.txt* For Vim version 8.0. Last change: 2017 Mar 18 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1986,16 +1986,23 @@ argidx() Number current index in the argument list |
1986 | 1986 | arglistid([{winnr} [, {tabnr}]]) Number argument list id |
1987 | 1987 | argv({nr}) String {nr} entry of the argument list |
1988 | 1988 | argv() List the argument list |
1989 | | -assert_equal({exp}, {act} [, {msg}]) none assert {exp} is equal to {act} |
1990 | | -assert_exception({error} [, {msg}]) none assert {error} is in v:exception |
1991 | | -assert_fails({cmd} [, {error}]) none assert {cmd} fails |
1992 | | -assert_false({actual} [, {msg}]) none assert {actual} is false |
| 1989 | +assert_equal({exp}, {act} [, {msg}]) |
| 1990 | + none assert {exp} is equal to {act} |
| 1991 | +assert_exception({error} [, {msg}]) |
| 1992 | + none assert {error} is in v:exception |
| 1993 | +assert_fails({cmd} [, {error}]) none assert {cmd} fails |
| 1994 | +assert_false({actual} [, {msg}]) |
| 1995 | + none assert {actual} is false |
1993 | 1996 | assert_inrange({lower}, {upper}, {actual} [, {msg}]) |
1994 | 1997 | none assert {actual} is inside the range |
1995 | | -assert_match({pat}, {text} [, {msg}]) none assert {pat} matches {text} |
1996 | | -assert_notequal({exp}, {act} [, {msg}]) none assert {exp} is not equal {act} |
1997 | | -assert_notmatch({pat}, {text} [, {msg}]) none assert {pat} not matches {text} |
1998 | | -assert_true({actual} [, {msg}]) none assert {actual} is true |
| 1998 | +assert_match({pat}, {text} [, {msg}]) |
| 1999 | + none assert {pat} matches {text} |
| 2000 | +assert_notequal({exp}, {act} [, {msg}]) |
| 2001 | + none assert {exp} is not equal {act} |
| 2002 | +assert_notmatch({pat}, {text} [, {msg}]) |
| 2003 | + none assert {pat} not matches {text} |
| 2004 | +assert_report({msg}) none report a test failure |
| 2005 | +assert_true({actual} [, {msg}]) none assert {actual} is true |
1999 | 2006 | asin({expr}) Float arc sine of {expr} |
2000 | 2007 | atan({expr}) Float arc tangent of {expr} |
2001 | 2008 | atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2} |
@@ -2583,7 +2590,10 @@ assert_notmatch({pattern}, {actual} [, {msg}]) |
2583 | 2590 | The opposite of `assert_match()`: add an error message to |
2584 | 2591 | |v:errors| when {pattern} matches {actual}. |
2585 | 2592 |
|
2586 | | -assert_true({actual} [, {msg}]) *assert_true()* |
| 2593 | +assert_report({msg}) *assert_report()* |
| 2594 | + Report a test failure directly, using {msg}. |
| 2595 | + |
| 2596 | +assert_true({actual} [, {msg}]) *assert_true()* |
2587 | 2597 | When {actual} is not true an error message is added to |
2588 | 2598 | |v:errors|, like with |assert_equal()|. |
2589 | 2599 | A value is TRUE when it is a non-zero number. When {actual} |
@@ -3925,11 +3935,14 @@ foldtext() Returns a String, to be displayed for a closed fold. This is |
3925 | 3935 | |v:foldstart|, |v:foldend| and |v:folddashes| variables. |
3926 | 3936 | The returned string looks like this: > |
3927 | 3937 | +-- 45 lines: abcdef |
3928 | | -< The number of dashes depends on the foldlevel. The "45" is |
3929 | | - the number of lines in the fold. "abcdef" is the text in the |
3930 | | - first non-blank line of the fold. Leading white space, "//" |
3931 | | - or "/*" and the text from the 'foldmarker' and 'commentstring' |
3932 | | - options is removed. |
| 3938 | +< The number of leading dashes depends on the foldlevel. The |
| 3939 | + "45" is the number of lines in the fold. "abcdef" is the text |
| 3940 | + in the first non-blank line of the fold. Leading white space, |
| 3941 | + "//" or "/*" and the text from the 'foldmarker' and |
| 3942 | + 'commentstring' options is removed. |
| 3943 | + When used to draw the actual foldtext, the rest of the line |
| 3944 | + will be filled with the fold char from the 'fillchars' |
| 3945 | + setting. |
3933 | 3946 | {not available when compiled without the |+folding| feature} |
3934 | 3947 |
|
3935 | 3948 | foldtextresult({lnum}) *foldtextresult()* |
|
0 commit comments