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

« back to all changes in this revision

Viewing changes to test/functional/legacy/search_mbyte_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 insert = helpers.insert
 
3
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
 
4
 
 
5
describe('search_mbyte', function()
 
6
  before_each(clear)
 
7
 
 
8
  it("search('multi-byte char', 'bce')", function()
 
9
    insert([=[
 
10
      Results:
 
11
      
 
12
      Test bce:
 
13
      A]=])
 
14
 
 
15
    execute('/^Test bce:/+1')
 
16
    execute([[$put =search('A', 'bce', line('.'))]])
 
17
 
 
18
    -- Assert buffer contents.
 
19
    expect([=[
 
20
      Results:
 
21
      
 
22
      Test bce:
 
23
      A
 
24
      4]=])
 
25
  end)
 
26
end)