Skip to content

Commit 2ab7dad

Browse files
committed
Vim.Buffer: Add read_contents cleanup test
1 parent 1fceb56 commit 2ab7dad

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/Vim/Buffer.vimspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ Describe Vim.Buffer
179179
Assert Equals(&fileencoding, 'utf-8')
180180
End
181181
End
182+
It wipes out tempfile buffer
183+
let fname = tempname()
184+
call Buffer.read_content([''], {'tempfile': fname})
185+
Assert Equals(bufnr(fname), -1)
186+
End
182187
End
183188

184189
Describe edit_content()

0 commit comments

Comments
 (0)