diff options
| author | James McCoy <jamessan@jamessan.com> | 2017-02-27 17:56:50 -0500 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-02-27 17:57:28 -0500 |
| commit | 7046b9a78da3bf2d397884574e25fc5c0b8a3700 (patch) | |
| tree | 0dd58977bade1644ebc2c773cd3b5d2e8525003b /src/nvim/testdir | |
| parent | 792fbed5f70a20eab9eb4051dd44bc2a6b9f0a2d (diff) | |
| parent | 362298e1412d445e0675f4136b6eecf49b7c4fa7 (diff) | |
| download | rneovim-7046b9a78da3bf2d397884574e25fc5c0b8a3700.tar.gz rneovim-7046b9a78da3bf2d397884574e25fc5c0b8a3700.tar.bz2 rneovim-7046b9a78da3bf2d397884574e25fc5c0b8a3700.zip | |
Merge pull request #6121 from lonerover/vim-7.4.2046
vim-patch:7.4.2046
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 0d6e5e1830..02f8da8b23 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -904,6 +904,30 @@ function! Test_efm2() call assert_equal('E', l[0].type) call assert_equal("\nunknown variable 'i'", l[0].text) + " Test for %A, %C and other formats + let lines = [ + \"==============================================================", + \"FAIL: testGetTypeIdCachesResult (dbfacadeTest.DjsDBFacadeTest)", + \"--------------------------------------------------------------", + \"Traceback (most recent call last):", + \' File "unittests/dbfacadeTest.py", line 89, in testFoo', + \" self.assertEquals(34, dtid)", + \' File "/usr/lib/python2.2/unittest.py", line 286, in', + \" failUnlessEqual", + \" raise self.failureException, \\", + \"AssertionError: 34 != 33", + \"", + \"--------------------------------------------------------------", + \"Ran 27 tests in 0.063s" + \] + set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m + cgetexpr lines + let l = getqflist() + call assert_equal(8, len(l)) + call assert_equal(89, l[4].lnum) + call assert_equal(1, l[4].valid) + call assert_equal('unittests/dbfacadeTest.py', bufname(l[4].bufnr)) + let &efm = save_efm endfunction |