Mercurial > vim
comparison src/testdir/test_options.vim @ 19231:b8fd7364befd v8.2.0174
patch 8.2.0174: various commands not completely tested
Commit: https://github.com/vim/vim/commit/5d98dc2a48156d44139b75c689bd3137ff7fe8bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 29 21:57:34 2020 +0100
patch 8.2.0174: various commands not completely tested
Problem: Various commands not completely tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5551)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Jan 2020 22:00:04 +0100 |
parents | 69f0e9b5c107 |
children | 2a017e9dc6da |
comparison
equal
deleted
inserted
replaced
19230:21e430519a6c | 19231:b8fd7364befd |
---|---|
638 set visualbell | 638 set visualbell |
639 call assert_beeps('normal 0h') | 639 call assert_beeps('normal 0h') |
640 set novisualbell | 640 set novisualbell |
641 set belloff=all | 641 set belloff=all |
642 endfunc | 642 endfunc |
643 | |
644 " Test for the 'write' option | |
645 func Test_write() | |
646 new | |
647 call setline(1, ['L1']) | |
648 set nowrite | |
649 call assert_fails('write Xfile', 'E142:') | |
650 set write | |
651 close! | |
652 endfunc | |
653 | |
654 " Test for 'buftype' option | |
655 func Test_buftype() | |
656 new | |
657 call setline(1, ['L1']) | |
658 set buftype=nowrite | |
659 call assert_fails('write', 'E382:') | |
660 close! | |
661 endfunc | |
662 | |
663 " vim: shiftwidth=2 sts=2 expandtab |