diff options
author | watiko <service@mail.watiko.net> | 2016-02-22 22:21:37 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-22 22:47:18 +0900 |
commit | f0add77de5b9f091cf122224d30ec4dc0188d522 (patch) | |
tree | 03fceebede403709d9898fe77d3c0e4913dff415 /test/functional/legacy/100_lispwords_spec.lua | |
parent | e71de26abade27b1c7b7ff0cf45d393d71b9a028 (diff) | |
download | rneovim-f0add77de5b9f091cf122224d30ec4dc0188d522.tar.gz rneovim-f0add77de5b9f091cf122224d30ec4dc0188d522.tar.bz2 rneovim-f0add77de5b9f091cf122224d30ec4dc0188d522.zip |
vim-patch:7.4.952
Problem: 'lispwords' is tested in the old way.
Solution: Make a new style test for 'lispwords'.
https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Diffstat (limited to 'test/functional/legacy/100_lispwords_spec.lua')
-rw-r--r-- | test/functional/legacy/100_lispwords_spec.lua | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/functional/legacy/100_lispwords_spec.lua b/test/functional/legacy/100_lispwords_spec.lua deleted file mode 100644 index 739a02f0b3..0000000000 --- a/test/functional/legacy/100_lispwords_spec.lua +++ /dev/null @@ -1,47 +0,0 @@ --- Tests for 'lispwords' setting being global-local - -local helpers = require('test.functional.helpers') -local source = helpers.source -local clear, expect = helpers.clear, helpers.expect - -describe('lispwords', function() - setup(clear) - - it('global-local', function() - source([[ - setglobal lispwords=foo,bar,baz - setlocal lispwords-=foo - setlocal lispwords+=quux - redir @A - echo "Testing 'lispwords' local value" - setglobal lispwords? - setlocal lispwords? - echo &lispwords - echo '' - redir end - setlocal lispwords< - redir @A - echo "Testing 'lispwords' value reset" - setglobal lispwords? - setlocal lispwords? - echo &lispwords - redir end - - 0put a - $d - ]]) - - -- Assert buffer contents. - expect([[ - - Testing 'lispwords' local value - lispwords=foo,bar,baz - lispwords=bar,baz,quux - bar,baz,quux - - Testing 'lispwords' value reset - lispwords=foo,bar,baz - lispwords=foo,bar,baz - foo,bar,baz]]) - end) -end) |