@@ -5366,7 +5366,42 @@ func Test_add_invalid_entry_with_qf_window()
53665366 call setqflist ([' bb' ], ' a' )
53675367 call assert_equal (1 , line (' $' ))
53685368 call assert_equal ([' Xfile1|10| aa' ], getline (1 , ' $' ))
5369- call assert_equal ([{' lnum' : 10 , ' end_lnum' : 0 , ' bufnr' : bufnr (' Xfile1' ), ' col' : 0 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }], getqflist ())
5369+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : 0 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5370+
5371+ call setqflist ([{' lnum' : 10 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5372+ call assert_equal (1 , line (' $' ))
5373+ call assert_equal ([' Xfile1|10| aa' ] , getline (1 , ' $' ))
5374+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : 0 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5375+
5376+ call setqflist ([{' lnum' : 10 , ' end_lnum' : 0 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5377+ call assert_equal (1 , line (' $' ))
5378+ call assert_equal ([' Xfile1|10| aa' ] , getline (1 , ' $' ))
5379+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : 0 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5380+
5381+ call setqflist ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : -456 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5382+ call assert_equal (1 , line (' $' ))
5383+ call assert_equal ([' Xfile1|10| aa' ] , getline (1 , ' $' ))
5384+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 0 , ' end_col' : -456 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5385+
5386+ call setqflist ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5387+ call assert_equal (1 , line (' $' ))
5388+ call assert_equal ([' Xfile1|10 col 666| aa' ] , getline (1 , ' $' ))
5389+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 0 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5390+
5391+ call setqflist ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : -456 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5392+ call assert_equal (1 , line (' $' ))
5393+ call assert_equal ([' Xfile1|10 col 666| aa' ] , getline (1 , ' $' ))
5394+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : -456 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5395+
5396+ call setqflist ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 222 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5397+ call assert_equal (1 , line (' $' ))
5398+ call assert_equal ([' Xfile1|10 col 666-222| aa' ] , getline (1 , ' $' ))
5399+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : -123 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 222 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
5400+
5401+ call setqflist ([{' lnum' : 10 , ' end_lnum' : 6 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 222 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , ' r' )
5402+ call assert_equal (1 , line (' $' ))
5403+ call assert_equal ([' Xfile1|10-6 col 666-222| aa' ] , getline (1 , ' $' ))
5404+ call assert_equal ([{' lnum' : 10 , ' end_lnum' : 6 , ' bufnr' : bufnr (' Xfile1' ) , ' col' : 666 , ' end_col' : 222 , ' pattern' : ' ' , ' valid' : 1 , ' vcol' : 0 , ' nr' : -1 , ' type' : ' ' , ' module' : ' ' , ' text' : ' aa' }] , getqflist ())
53705405 cclose
53715406endfunc
53725407
0 commit comments