robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- Tests for quickfix window's title 2 3local n =require ( 'test.functional.testnvim' )() 4local t =require ( 'test.testutil' ) 5 6local describe , it , setup =t . describe , t . it , t . setup 7local insert , source =n . insert , n . source 8local clear , expect =n . clear , n . expect 9 10describe ( 'qf_title' , function () 11setup ( clear ) 12 13it ( 'is working' , function () 14insert ( [[ 15Results of test_qf_title:]] ) 16 17source ( [[ 18set efm=%E%f:%l:%c:%m 19cgetexpr ['file:1:1:message'] 20let qflist=getqflist() 21call setqflist(qflist, 'r') 22copen 23let g:quickfix_title=w:quickfix_title 24wincmd p 25$put =g:quickfix_title 26]] ) 27 28-- Assert buffer contents. 29expect ( [[ 30Results of test_qf_title: 31:setqflist()]] ) 32end ) 33end )