diff options
Diffstat (limited to 'test/lua/file-empty.lua')
| -rw-r--r-- | test/lua/file-empty.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lua/file-empty.lua b/test/lua/file-empty.lua new file mode 100644 index 0000000..69ec17d --- /dev/null +++ b/test/lua/file-empty.lua @@ -0,0 +1,21 @@ +require 'busted.runner'() + +local file = vis.win.file + +describe("empty file", function() + + it("has size zero", function() + assert.are.equal(0, file.size) + end) + + it("has zero lines", function() + assert.are.equal(0, #file.lines) + end) + + it("has lines[1] == ''", function() + -- is that what we want? + assert.are.equal("", file.lines[1]) + end) + +end) + |
