aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-03-05 02:15:17 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:45 +0300
commit38dd81c136c2edbda66614622a4747bf1785af94 (patch)
treee1b16bc84bb67a2a1d0a81857e91df83a7260705 /test/unit
parentfaddd83db8a71623e78a4d919b2bb55e6a58439d (diff)
downloadrneovim-38dd81c136c2edbda66614622a4747bf1785af94.tar.gz
rneovim-38dd81c136c2edbda66614622a4747bf1785af94.tar.bz2
rneovim-38dd81c136c2edbda66614622a4747bf1785af94.zip
eval/typval: Fix SEGV in test_alot.vim test
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/eval/typval_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua
index ebd53469e8..937869a7bc 100644
--- a/test/unit/eval/typval_spec.lua
+++ b/test/unit/eval/typval_spec.lua
@@ -1568,5 +1568,12 @@ describe('typval.c', function()
end)
end)
end)
+ describe('indexing', function()
+ describe('find', function()
+ itp('works with NULL dict', function()
+ eq(nil, lib.tv_dict_find(nil, '', 0))
+ end)
+ end)
+ end)
end)
end)