From d37dc0b3142c7f4795a28c44d6ebb85b8c961c0c Mon Sep 17 00:00:00 2001 From: watiko Date: Thu, 17 Dec 2015 17:56:16 +0900 Subject: tests: Rename 100_undo_level to 100_lispwords. --- test/functional/legacy/100_lispwords_spec.lua | 47 ++++++++++++++++++++++++++ test/functional/legacy/100_undo_level_spec.lua | 47 -------------------------- 2 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 test/functional/legacy/100_lispwords_spec.lua delete mode 100644 test/functional/legacy/100_undo_level_spec.lua diff --git a/test/functional/legacy/100_lispwords_spec.lua b/test/functional/legacy/100_lispwords_spec.lua new file mode 100644 index 0000000000..ba2d485280 --- /dev/null +++ b/test/functional/legacy/100_lispwords_spec.lua @@ -0,0 +1,47 @@ +-- 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('undolevel', function() + setup(clear) + + it('is working', 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) diff --git a/test/functional/legacy/100_undo_level_spec.lua b/test/functional/legacy/100_undo_level_spec.lua deleted file mode 100644 index ba2d485280..0000000000 --- a/test/functional/legacy/100_undo_level_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('undolevel', function() - setup(clear) - - it('is working', 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) -- cgit