mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
commit
5aa97937e7
@ -70,7 +70,7 @@ test_mf_hash(void)
|
|||||||
assert(mf_hash_find(&ht, key) == NULL);
|
assert(mf_hash_find(&ht, key) == NULL);
|
||||||
|
|
||||||
/* allocate and add new item */
|
/* allocate and add new item */
|
||||||
item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE);
|
item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE);
|
||||||
assert(item != NULL);
|
assert(item != NULL);
|
||||||
item->mhi_key = key;
|
item->mhi_key = key;
|
||||||
mf_hash_add_item(&ht, item);
|
mf_hash_add_item(&ht, item);
|
||||||
|
@ -123,8 +123,8 @@ func Test_cscopeWithCscopeConnections()
|
|||||||
if cs_version >= 15.8
|
if cs_version >= 15.8
|
||||||
for cmd in ['cs find a item', 'cs find 9 item']
|
for cmd in ['cs find a item', 'cs find 9 item']
|
||||||
let a = execute(cmd)
|
let a = execute(cmd)
|
||||||
call assert_equal(['', '(1 of 4): <<test_mf_hash>> item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE);'], split(a, '\n', 1))
|
call assert_equal(['', '(1 of 4): <<test_mf_hash>> item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE);'], split(a, '\n', 1))
|
||||||
call assert_equal(' item = (mf_hashitem_T *)lalloc_clear(sizeof(mf_hashtab_T), FALSE);', getline('.'))
|
call assert_equal(' item = (mf_hashitem_T *)lalloc_clear(sizeof(*item), FALSE);', getline('.'))
|
||||||
cnext
|
cnext
|
||||||
call assert_equal(' item = mf_hash_find(&ht, key);', getline('.'))
|
call assert_equal(' item = mf_hash_find(&ht, key);', getline('.'))
|
||||||
cnext
|
cnext
|
||||||
|
Loading…
Reference in New Issue
Block a user