summaryrefslogtreecommitdiff
path: root/src/testdir/test_blob.vim
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-23 20:37:56 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-23 20:37:56 +0200
commit0ad871dc4dfe1026e14931a55c225616b63f4c5b (patch)
treea83e1cf4e231864e182c4b9ce70c37460d2200dd /src/testdir/test_blob.vim
parent1b862c466ba4242857eec581f67982d265005ef4 (diff)
downloadvim-git-0ad871dc4dfe1026e14931a55c225616b63f4c5b.tar.gz
patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r--src/testdir/test_blob.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim
index 24ac7ea42..a8d8da0c5 100644
--- a/src/testdir/test_blob.vim
+++ b/src/testdir/test_blob.vim
@@ -357,13 +357,13 @@ func Test_blob_add()
VAR b = 0z0011
call add(b, [9])
END
- call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1012:', 'E745:'])
+ call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1012:', 'E1210:'])
let lines =<< trim END
VAR b = 0z0011
call add("", 0x01)
END
- call CheckLegacyAndVim9Failure(lines, 'E897:')
+ call CheckLegacyAndVim9Failure(lines, ['E897:', 'E1013:', 'E1211:'])
let lines =<< trim END
add(test_null_blob(), 0x22)
@@ -519,7 +519,7 @@ func Test_blob_insert()
VAR b = 0zDEADBEEF
call insert(b, 0, [9])
END
- call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1013:', 'E745:'])
+ call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1013:', 'E1210:'])
let lines =<< trim END
VAR b = 0zDEADBEEF
@@ -537,7 +537,7 @@ func Test_blob_insert()
VAR b = 0zDEADBEEF
call insert(b, [])
END
- call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1013:', 'E745:'])
+ call CheckLegacyAndVim9Failure(lines, ['E745:', 'E1013:', 'E1210:'])
let lines =<< trim END
insert(test_null_blob(), 0x33)