aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/json_functions_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-03-20 19:08:42 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commit9709cf2cdbd98403aede9edbc8bbe435aeefb463 (patch)
tree01f75ddd1798e688deae06960d5a65784448dcac /test/functional/eval/json_functions_spec.lua
parent25bb08dad930a975010798c592b5277d1b5a18b0 (diff)
downloadrneovim-9709cf2cdbd98403aede9edbc8bbe435aeefb463.tar.gz
rneovim-9709cf2cdbd98403aede9edbc8bbe435aeefb463.tar.bz2
rneovim-9709cf2cdbd98403aede9edbc8bbe435aeefb463.zip
documentation: Update assert_{false,true}() and empty() documentation
Also removes a note regarding the performance of `empty(long_list)` vs `len(long_list) == 0` because this has nothing to do with the actual state: first checks that list is not NULL and pointer to its first element is also not NULL, second gets length by comparing list with NULL and falls back to `tv->vval.v_list->lv_len` if not. `len(long_list)` *may* still be *slightly* slower, but the slow down has nothing to do with the length of the list, is hardly noticeable and depends on how good compiler is at inlining and what exactly have author of the plugin written (I mean `len(long_list) == 0` vs `empty(long_list)` vs `!len(long_list)`).
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions