Mercurial > vim
comparison runtime/doc/eval.txt @ 14748:00da090af0ab v8.1.0386
patch 8.1.0386: cannot test with non-default option value
commit https://github.com/vim/vim/commit/fe8ef98dd1d0b7d296d7db29b1e2fd1b56b788de
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 13 20:31:54 2018 +0200
patch 8.1.0386: cannot test with non-default option value
Problem: Cannot test with non-default option value.
Solution: Add test_option_not_set().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 13 Sep 2018 20:45:05 +0200 |
parents | 0a3b9ecf7cb8 |
children | a179e5cfcab7 |
comparison
equal
deleted
inserted
replaced
14747:5d8362ca850a | 14748:00da090af0ab |
---|---|
2471 test_null_dict() Dict null value for testing | 2471 test_null_dict() Dict null value for testing |
2472 test_null_job() Job null value for testing | 2472 test_null_job() Job null value for testing |
2473 test_null_list() List null value for testing | 2473 test_null_list() List null value for testing |
2474 test_null_partial() Funcref null value for testing | 2474 test_null_partial() Funcref null value for testing |
2475 test_null_string() String null value for testing | 2475 test_null_string() String null value for testing |
2476 test_option_not_set({name}) none reset flag indicating option was set | |
2476 test_override({expr}, {val}) none test with Vim internal overrides | 2477 test_override({expr}, {val}) none test with Vim internal overrides |
2477 test_settime({expr}) none set current time for testing | 2478 test_settime({expr}) none set current time for testing |
2478 timer_info([{id}]) List information about timers | 2479 timer_info([{id}]) List information about timers |
2479 timer_pause({id}, {pause}) none pause or unpause a timer | 2480 timer_pause({id}, {pause}) none pause or unpause a timer |
2480 timer_start({time}, {callback} [, {options}]) | 2481 timer_start({time}, {callback} [, {options}]) |
8734 test_null_partial() *test_null_partial()* | 8735 test_null_partial() *test_null_partial()* |
8735 Return a Partial that is null. Only useful for testing. | 8736 Return a Partial that is null. Only useful for testing. |
8736 | 8737 |
8737 test_null_string() *test_null_string()* | 8738 test_null_string() *test_null_string()* |
8738 Return a String that is null. Only useful for testing. | 8739 Return a String that is null. Only useful for testing. |
8740 | |
8741 test_option_not_set({name}) *test_option_not_set()* | |
8742 Reset the flag that indicates option {name} was set. Thus it | |
8743 looks like it still has the default value. Use like this: > | |
8744 set ambiwidth=double | |
8745 call test_option_not_set('ambiwidth') | |
8746 < Now the 'ambiwidth' option behaves like it was never changed, | |
8747 even though the value is "double". | |
8748 Only to be used for testing! | |
8739 | 8749 |
8740 test_override({name}, {val}) *test_override()* | 8750 test_override({name}, {val}) *test_override()* |
8741 Overrides certain parts of Vims internal processing to be able | 8751 Overrides certain parts of Vims internal processing to be able |
8742 to run tests. Only to be used for testing Vim! | 8752 to run tests. Only to be used for testing Vim! |
8743 The override is enabled when {val} is non-zero and removed | 8753 The override is enabled when {val} is non-zero and removed |