diff options
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r-- | src/testdir/test_blob.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim index a54cede9e8..47315ab84f 100644 --- a/src/testdir/test_blob.vim +++ b/src/testdir/test_blob.vim @@ -508,6 +508,11 @@ func Test_blob_read_write() END call v9.CheckLegacyAndVim9Success(lines) + if filereadable('/dev/random') + let b = readblob('/dev/random', 0, 10) + call assert_equal(10, len(b)) + endif + call assert_fails("call readblob('notexist')", 'E484:') " TODO: How do we test for the E485 error? |