robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
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 () 9local tempfile =t . tmpname () 10before_each ( clear ) 11 12after_each ( function () 13os . remove ( tempfile ) 14end ) 15 16it ( 'does not crash with a large version number' , function () 17write_file ( tempfile , 'vim100000000000000000000000' ) 18command ( 'e! ' .. tempfile ) 19 20assert_alive () 21end ) 22end )