Mercurial > vim
diff src/testdir/test_quickfix.vim @ 13760:aef8ba129a4f v8.0.1752
patch 8.0.1752: qf_set_properties() is to long
commit https://github.com/vim/vim/commit/a2aa8a2b22de909619d7faa3ff5383a6224defc5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 13:55:00 2018 +0200
patch 8.0.1752: qf_set_properties() is to long
Problem: qf_set_properties() is to long.
Solution: Refactor the function. Define INVALID_QFIDX. (Yegappan
Lakshmanan, closes #2812)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 14:00:07 +0200 |
parents | c38f29387245 |
children | 7bba231fdddc |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -1795,6 +1795,9 @@ func Xproperty_tests(cchar) call assert_equal(0, s) let d = g:Xgetlist({"title":1}) call assert_equal('Sample', d.title) + " Try setting title to a non-string value + call assert_equal(-1, g:Xsetlist([], 'a', {'title' : ['Test']})) + call assert_equal('Sample', g:Xgetlist({"title":1}).title) Xopen call assert_equal('Sample', w:quickfix_title) @@ -1943,6 +1946,9 @@ func Xproperty_tests(cchar) call g:Xsetlist([], 'a', {'items' : [{'filename':'F1', 'lnum':10}]}) call assert_equal(10, g:Xgetlist({'items':1}).items[0].lnum) + " Try setting the items using a string + call assert_equal(-1, g:Xsetlist([], ' ', {'items' : 'Test'})) + " Save and restore the quickfix stack call g:Xsetlist([], 'f') call assert_equal(0, g:Xgetlist({'nr':'$'}).nr)