Mercurial > vim
diff src/testdir/test_blob.vim @ 25822:42723b535ab3 v8.2.3446
patch 8.2.3446: not enough tests for empty string arguments
Commit: https://github.com/vim/vim/commit/820d5525cae707f39571c6abc2aa6a9e66ed171e
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Sep 17 21:07:35 2021 +0200
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 https://github.com/vim/vim/issues/8881)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Sep 2021 21:15:03 +0200 |
parents | 8d55e978f95b |
children | 43d196ca5e7a |
line wrap: on
line diff
--- 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:')