~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to test/functional/legacy/lispwords_spec.lua

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
local helpers = require('test.functional.helpers')
 
2
local clear = helpers.clear
 
3
local eq = helpers.eq
 
4
local eval = helpers.eval
 
5
local execute = helpers.execute
 
6
local source = helpers.source
 
7
 
 
8
describe('lispwords', function()
 
9
  before_each(clear)
 
10
 
 
11
  it('should be set global-local',function()
 
12
    source([[
 
13
      setglobal lispwords=foo,bar,baz
 
14
      setlocal lispwords-=foo
 
15
      setlocal lispwords+=quux]])
 
16
    eq('foo,bar,baz', eval('&g:lispwords'))
 
17
    eq('bar,baz,quux', eval('&l:lispwords'))
 
18
    eq('bar,baz,quux', eval('&lispwords'))
 
19
 
 
20
    execute('setlocal lispwords<')
 
21
    eq('foo,bar,baz', eval('&g:lispwords'))
 
22
    eq('foo,bar,baz', eval('&l:lispwords'))
 
23
    eq('foo,bar,baz', eval('&lispwords'))
 
24
  end)
 
25
end)