Mercurial > vim
comparison src/testdir/test_vartabs.vim @ 16376:3b5d401a58ce v8.1.1193
patch 8.1.1193: typos and small problems in test files
commit https://github.com/vim/vim/commit/037c54f261818439755d56e318da068f97997fb5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 20 23:47:46 2019 +0200
patch 8.1.1193: typos and small problems in test files
Problem: Typos and small problems in test files.
Solution: Small improvements.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Apr 2019 00:00:04 +0200 |
parents | 63b02fcf1361 |
children | f38fcbf343ce |
comparison
equal
deleted
inserted
replaced
16375:0556eeb51945 | 16376:3b5d401a58ce |
---|---|
3 if !has("vartabs") | 3 if !has("vartabs") |
4 finish | 4 finish |
5 endif | 5 endif |
6 | 6 |
7 source view_util.vim | 7 source view_util.vim |
8 | |
8 func s:compare_lines(expect, actual) | 9 func s:compare_lines(expect, actual) |
9 call assert_equal(join(a:expect, "\n"), join(a:actual, "\n")) | 10 call assert_equal(join(a:expect, "\n"), join(a:actual, "\n")) |
10 endfunc | 11 endfunc |
11 | 12 |
12 func Test_vartabs() | 13 func Test_vartabs() |
370 call assert_fails('set vts=8,,8,') | 371 call assert_fails('set vts=8,,8,') |
371 call assert_fails('set vsts=8,,8,') | 372 call assert_fails('set vsts=8,,8,') |
372 call assert_fails('set vts=,8') | 373 call assert_fails('set vts=,8') |
373 call assert_fails('set vsts=,8') | 374 call assert_fails('set vsts=,8') |
374 endfunc | 375 endfunc |
376 | |
377 func Test_vartabs_reset() | |
378 set vts=8 | |
379 set all& | |
380 call assert_equal('', &vts) | |
381 endfunc |