neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

029_fuzzy_spec.lua (557B)


      1 -- Test for buffer name completion when 'wildoptions' contains "fuzzy"
      2 -- (Confirm that Vim does not crash)
      3 local n = require('test.functional.testnvim')()
      4 
      5 local clear = n.clear
      6 local insert = n.insert
      7 local expect = n.expect
      8 local feed_command = n.feed_command
      9 local command = n.command
     10 
     11 describe('set wildoptions=fuzzy', function()
     12  before_each(clear)
     13 
     14  it('works', function()
     15    insert([[I'm alive!]])
     16    command('set wildoptions=fuzzy')
     17    command('new buf_a')
     18    feed_command('b buf_a')
     19    command('q!')
     20    expect([[I'm alive!]])
     21  end)
     22 end)