neovim

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

search_spec.lua (478B)


      1 local t = require('test.testutil')
      2 local n = require('test.functional.testnvim')()
      3 
      4 local clear = n.clear
      5 local command = n.command
      6 local eq = t.eq
      7 local pcall_err = t.pcall_err
      8 
      9 describe('search (/)', function()
     10  before_each(clear)
     11 
     12  it('fails with huge column (%c) value #9930', function()
     13    eq([[Vim:E951: \% value too large]], pcall_err(command, '/\\v%18446744071562067968c'))
     14    eq([[Vim:E951: \% value too large]], pcall_err(command, '/\\v%2147483648c'))
     15  end)
     16 end)