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