mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
patch 8.1.0736: code for Blob not sufficiently tested
Problem: Code for Blob not sufficiently tested. Solution: Add more tests. Fix uncovered crash. Add test_null_blob().
This commit is contained in:
@@ -63,3 +63,9 @@ func Test_E963()
|
||||
call assert_fails("let v:oldfiles=''", 'E963:')
|
||||
call assert_equal(v_o, v:oldfiles)
|
||||
endfunc
|
||||
|
||||
func Test_for_invalid()
|
||||
call assert_fails("for x in 99", 'E714:')
|
||||
call assert_fails("for x in 'asdf'", 'E714:')
|
||||
call assert_fails("for x in {'a': 9}", 'E714:')
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user