test/sam: add tests for empty matches at the end of a range
[vis-test.git] / lua / file-empty.lua
blob69ec17d59945a1b0628fa8988e335663e6ff12ca
1 require 'busted.runner'()
3 local file = vis.win.file
5 describe("empty file", function()
7 it("has size zero", function()
8 assert.are.equal(0, file.size)
9 end)
11 it("has zero lines", function()
12 assert.are.equal(0, #file.lines)
13 end)
15 it("has lines[1] == ''", function()
16 -- is that what we want?
17 assert.are.equal("", file.lines[1])
18 end)
20 end)