mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.3446: not enough tests for empty string arguments
Problem: Not enough tests for empty string arguments. Solution: Add tests, fix type check. (Yegappan Lakshmanan, closes #8881)
This commit is contained in:
committed by
Bram Moolenaar
parent
542ffe16a1
commit
820d5525ca
@@ -663,10 +663,11 @@ func Test_list2blob()
|
||||
\ [[0], 0z00],
|
||||
\ [[], 0z],
|
||||
\ [[0, 0, 0, 0], 0z00000000],
|
||||
\ [[255, 255], 0zFFFF],
|
||||
\ [[170, 187, 204, 221], 0zAABB.CCDD],
|
||||
\ ]
|
||||
for t in tests
|
||||
call assert_equal(t[0]->list2blob(), t[1])
|
||||
call assert_equal(t[1], t[0]->list2blob())
|
||||
endfor
|
||||
call assert_fails('let b = list2blob([1, []])', 'E745:')
|
||||
call assert_fails('let b = list2blob([-1])', 'E1239:')
|
||||
|
Reference in New Issue
Block a user