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

« back to all changes in this revision

Viewing changes to test/functional/legacy/options_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
 
 
2
1
local helpers = require('test.functional.helpers')
3
2
local command, clear = helpers.command, helpers.clear
 
3
local source, expect = helpers.source, helpers.expect
4
4
 
5
5
describe('options', function()
6
6
  setup(clear)
7
7
 
8
 
  it('is working', function()
 
8
  it('should not throw any exception', function()
9
9
    command('options')
10
10
  end)
11
11
end)
 
12
 
 
13
describe('set', function()
 
14
  setup(clear)
 
15
 
 
16
  it("should keep two comma when 'path' is changed", function()
 
17
    source([[
 
18
      set path=foo,,bar
 
19
      set path-=bar
 
20
      set path+=bar
 
21
      $put =&path]])
 
22
 
 
23
    expect([[
 
24
      
 
25
      foo,,bar]])
 
26
  end)
 
27
end)