robin/laufey

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

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
603 B22 linesraw
1local t = require('test.testutil')
2local n = require('test.functional.testnvim')()
3
4local describe, it, before_each, after_each = t.describe, t.it, t.before_each, t.after_each
5local assert_alive = n.assert_alive
6local clear, command, write_file = n.clear, n.command, t.write_file
7
8describe('modeline', function()
9  local tempfile = t.tmpname()
10  before_each(clear)
11
12  after_each(function()
13    os.remove(tempfile)
14  end)
15
16  it('does not crash with a large version number', function()
17    write_file(tempfile, 'vim100000000000000000000000')
18    command('e! ' .. tempfile)
19
20    assert_alive()
21  end)
22end)