diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-01-06 21:17:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 21:17:44 +0100 |
commit | fe1ebea33914df137fdded98872fe38fa8470384 (patch) | |
tree | 174c220158f0cfd91c638a0a35120510001006d7 /test/functional | |
parent | 2ea3127697692b0b2c480d585ef6529e90a72b0e (diff) | |
parent | 25cb2c722e74ea62c289ecba8a6e98db5ee67493 (diff) | |
download | rneovim-fe1ebea33914df137fdded98872fe38fa8470384.tar.gz rneovim-fe1ebea33914df137fdded98872fe38fa8470384.tar.bz2 rneovim-fe1ebea33914df137fdded98872fe38fa8470384.zip |
Merge pull request #13689 from janlazo/vim-8.2.0050
vim-patch:8.1.{1731,1764,2111,2126},8.2.{50,590}
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/backspace_opt_spec.lua | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/test/functional/legacy/backspace_opt_spec.lua b/test/functional/legacy/backspace_opt_spec.lua deleted file mode 100644 index 90bc6f74f0..0000000000 --- a/test/functional/legacy/backspace_opt_spec.lua +++ /dev/null @@ -1,67 +0,0 @@ -local helpers = require('test.functional.helpers')(after_each) -local call, clear = helpers.call, helpers.clear -local source, eq, nvim = helpers.source, helpers.eq, helpers.meths - -describe("test 'backspace' settings", function() - before_each(function() - clear() - - source([[ - func Exec(expr) - let str='' - try - exec a:expr - catch /.*/ - let str=v:exception - endtry - return str - endfunc - - func Test_backspace_option() - set backspace= - call assert_equal('', &backspace) - set backspace=indent - call assert_equal('indent', &backspace) - set backspace=eol - call assert_equal('eol', &backspace) - set backspace=start - call assert_equal('start', &backspace) - " Add the value - set backspace= - set backspace=indent - call assert_equal('indent', &backspace) - set backspace+=eol - call assert_equal('indent,eol', &backspace) - set backspace+=start - call assert_equal('indent,eol,start', &backspace) - " Delete the value - set backspace-=indent - call assert_equal('eol,start', &backspace) - set backspace-=start - call assert_equal('eol', &backspace) - set backspace-=eol - call assert_equal('', &backspace) - " Check the error - call assert_equal(0, match(Exec('set backspace=ABC'), '.*E474')) - call assert_equal(0, match(Exec('set backspace+=def'), '.*E474')) - " NOTE: Vim doesn't check following error... - "call assert_equal(0, match(Exec('set backspace-=ghi'), '.*E474')) - - " Check backwards compatibility with version 5.4 and earlier - set backspace=0 - call assert_equal('0', &backspace) - set backspace=1 - call assert_equal('1', &backspace) - set backspace=2 - call assert_equal('2', &backspace) - call assert_false(match(Exec('set backspace=3'), '.*E474')) - call assert_false(match(Exec('set backspace=10'), '.*E474')) - endfunc - ]]) - end) - - it('works', function() - call('Test_backspace_option') - eq({}, nvim.get_vvar('errors')) - end) -end) |