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 =t . describe , t . it , t . before_each 5local clear =n . clear 6local eq =t . eq 7local api =n . api 8 9describe ( "'modified'" , function () 10before_each ( function () 11clear () 12end ) 13 14it ( "can be unset after changing 'fileformat'" , function () 15for _ , ff in ipairs ( { 'unix' , 'dos' , 'mac' } ) do 16api . nvim_set_option_value ( 'fileformat' , ff , {} ) 17api . nvim_set_option_value ( 'modified' , false , {} ) 18eq ( false , api . nvim_get_option_value ( 'modified' , {} ), 'fileformat=' .. ff ) 19end 20end ) 21end )