search_spec.lua 478 B

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