diff options
| author | Matthieu Coudron <mattator@gmail.com> | 2020-06-07 18:00:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 18:00:43 +0200 |
| commit | 980b12edbabc573f72d762dde844a771cc705e84 (patch) | |
| tree | 7f85b4eb417f328163685b4326b300f3c98c9c94 /src/nvim/testdir | |
| parent | dbc8ec94464049311e69274cad562585d7bb6749 (diff) | |
| parent | 22f6da9514eeebbb7f2344b1b0179b170b1fc9d8 (diff) | |
| download | rneovim-980b12edbabc573f72d762dde844a771cc705e84.tar.gz rneovim-980b12edbabc573f72d762dde844a771cc705e84.tar.bz2 rneovim-980b12edbabc573f72d762dde844a771cc705e84.zip | |
Merge pull request #12192 from Billy4195/vim-8.2.0629
[RFC] vim-patch:8.2.0629
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_options.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 400af33c58..04a5c62f66 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -561,3 +561,18 @@ func Test_visualbell() set novisualbell set belloff=all endfunc + +" Test for setting option values using v:false and v:true +func Test_opt_boolean() + set number& + set number + call assert_equal(1, &nu) + set nonu + call assert_equal(0, &nu) + let &nu = v:true + call assert_equal(1, &nu) + let &nu = v:false + call assert_equal(0, &nu) + set number& +endfunc + |