robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
678 B33 linesraw
1local n = require('test.functional.testnvim')()
2local t = require('test.testutil')
3
4local describe, it, before_each = t.describe, t.it, t.before_each
5local poke_eventloop = n.poke_eventloop
6local clear = n.clear
7local insert = n.insert
8local expect = n.expect
9local command = n.command
10
11describe('search_mbyte', function()
12  before_each(clear)
13
14  it("search('multi-byte char', 'bce')", function()
15    insert([=[
16      Results:
17
18      Test bce:
19      A]=])
20    poke_eventloop()
21
22    command('/^Test bce:/+1')
23    command([[$put =search('A', 'bce', line('.'))]])
24
25    -- Assert buffer contents.
26    expect([=[
27      Results:
28
29      Test bce:
30      A
31      4]=])
32  end)
33end)