diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-09-17 21:07:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-17 21:07:35 +0200 |
commit | 820d5525cae707f39571c6abc2aa6a9e66ed171e (patch) | |
tree | 0af1c31a08357e6d13ce8642c45b807d92e3a6b3 /src/testdir/test_blob.vim | |
parent | 542ffe16a1b6961e9262a3c4c6ddb86e6149a1cd (diff) |
patch 8.2.3446: not enough tests for empty string argumentsv8.2.3446
Problem: Not enough tests for empty string arguments.
Solution: Add tests, fix type check. (Yegappan Lakshmanan, closes #8881)
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r-- | src/testdir/test_blob.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim index e722dab559..473886d68e 100644 --- a/src/testdir/test_blob.vim +++ b/src/testdir/test_blob.vim @@ -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:') |