Mercurial > vim
comparison src/testdir/test_options.vim @ 19137:69f0e9b5c107 v8.2.0128
patch 8.2.0128: cannot list options one per line
Commit: https://github.com/vim/vim/commit/6b915c0c0ee7ef82f8d3d310a4345e098cb929b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 18 15:53:19 2020 +0100
patch 8.2.0128: cannot list options one per line
Problem: Cannot list options one per line.
Solution: Use ":set!" to list one option per line.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Jan 2020 16:00:04 +0100 |
parents | 5bef1043abff |
children | b8fd7364befd |
comparison
equal
deleted
inserted
replaced
19136:bbce494fe8df | 19137:69f0e9b5c107 |
---|---|
42 let a=execute('set wildchar?') | 42 let a=execute('set wildchar?') |
43 call assert_equal("\n wildchar=<Esc>", a) | 43 call assert_equal("\n wildchar=<Esc>", a) |
44 set wildchar& | 44 set wildchar& |
45 endfunc | 45 endfunc |
46 | 46 |
47 func Test_options() | 47 func Test_options_command() |
48 let caught = 'ok' | 48 let caught = 'ok' |
49 try | 49 try |
50 options | 50 options |
51 catch | 51 catch |
52 let caught = v:throwpoint . "\n" . v:exception | 52 let caught = v:throwpoint . "\n" . v:exception |
386 call assert_match('iskeyword=a-z,A-Z', out) | 386 call assert_match('iskeyword=a-z,A-Z', out) |
387 call assert_match('nosplitbelow', out) | 387 call assert_match('nosplitbelow', out) |
388 set tw& iskeyword& splitbelow& | 388 set tw& iskeyword& splitbelow& |
389 endfunc | 389 endfunc |
390 | 390 |
391 func Test_set_one_column() | |
392 let out_mult = execute('set all')->split("\n") | |
393 let out_one = execute('set! all')->split("\n") | |
394 " one column should be two to four times as many lines | |
395 call assert_inrange(len(out_mult) * 2, len(out_mult) * 4, len(out_one)) | |
396 endfunc | |
397 | |
391 func Test_set_values() | 398 func Test_set_values() |
392 if filereadable('opt_test.vim') | 399 if filereadable('opt_test.vim') |
393 source opt_test.vim | 400 source opt_test.vim |
394 else | 401 else |
395 throw 'Skipped: opt_test.vim does not exist' | 402 throw 'Skipped: opt_test.vim does not exist' |