comparison src/testdir/test_plus_arg_edit.vim @ 19407:2f4be7ca1b1b v8.2.0261

patch 8.2.0261: some code not covered by tests Commit: https://github.com/vim/vim/commit/f0cee1971f5258ce61f8a4e6a04d35c1e625bb01 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 13:33:56 2020 +0100 patch 8.2.0261: some code not covered by tests Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5645)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 13:45:04 +0100
parents 2dcaa860e3fc
children cb73f4ae6b7c
comparison
equal deleted inserted replaced
19406:9f499efdf2aa 19407:2f4be7ca1b1b
30 call assert_fails('e! ++enc=utf8 ++bad=foo Xfile', 'E474:') 30 call assert_fails('e! ++enc=utf8 ++bad=foo Xfile', 'E474:')
31 31
32 bw! 32 bw!
33 call delete('Xfile') 33 call delete('Xfile')
34 endfunc 34 endfunc
35
36 " Test for ++bin and ++nobin arguments
37 func Test_binary_arg()
38 new
39 edit ++bin Xfile1
40 call assert_equal(1, &binary)
41 edit ++nobin Xfile2
42 call assert_equal(0, &binary)
43 call assert_fails('edit ++binabc Xfile3', 'E474:')
44 close!
45 endfunc
46
47 " vim: shiftwidth=2 sts=2 expandtab