diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-20 17:51:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 17:51:51 +0200 |
commit | 83494b4ac61898f687d6ef9dce4bad5802fb8e51 (patch) | |
tree | 36f06f4a70bd9a515527064cd8985029ab27c6a6 /src/testdir/test_blob.vim | |
parent | 9bb0dad0d8283c86fddf5b950f4fbb6fb8f12741 (diff) | |
download | vim-git-83494b4ac61898f687d6ef9dce4bad5802fb8e51.tar.gz |
patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587)
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r-- | src/testdir/test_blob.vim | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim index 5eb3f3cb9..24ac7ea42 100644 --- a/src/testdir/test_blob.vim +++ b/src/testdir/test_blob.vim @@ -425,24 +425,6 @@ func Test_blob_func_remove() let lines =<< trim END VAR b = 0zDEADBEEF - call remove(1, 0) - END - call CheckLegacyAndVim9Failure(lines, 'E896:') - - let lines =<< trim END - VAR b = 0zDEADBEEF - call remove(b, b) - END - call CheckLegacyAndVim9Failure(lines, 'E974:') - - let lines =<< trim END - VAR b = 0zDEADBEEF - call remove(b, 1, []) - END - call CheckLegacyAndVim9Failure(lines, 'E745:') - - let lines =<< trim END - VAR b = 0zDEADBEEF call remove(test_null_blob(), 1, 2) END call CheckLegacyAndVim9Failure(lines, 'E979:') @@ -504,16 +486,6 @@ func Test_blob_index() call assert_equal(-1, index(test_null_blob(), 1)) END call CheckLegacyAndVim9Success(lines) - - let lines =<< trim END - echo index(0z11110111, 0x11, []) - END - call CheckLegacyAndVim9Failure(lines, 'E745:') - - let lines =<< trim END - call index("asdf", 0) - END - call CheckLegacyAndVim9Failure(lines, 'E897:') endfunc func Test_blob_insert() |