diff options
Diffstat (limited to 'ftplugin/hunk_spec.lua')
-rw-r--r-- | ftplugin/hunk_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ftplugin/hunk_spec.lua b/ftplugin/hunk_spec.lua index c640afb..13d14f3 100644 --- a/ftplugin/hunk_spec.lua +++ b/ftplugin/hunk_spec.lua @@ -38,9 +38,17 @@ describe("Class functions", function() hk = require("hunk") end) +-- TODO some protection of hk.createHunkHeader() against bad +-- TODO parameters (creating impossible regions of lines) return +-- TODO empty string in such case it("generates correct header", function() local header_str = hk.createHunkHeader(12,15,25,30,"something") local exp_str = "@@ -12,15 +25,30 @@ something" assert.are.equal(exp_str, header_str) end) + + it("counts lines in chunk correctly", function() + local header_str = hk.countLines(12,15, function(beg, fin) return {} end) + pending("This test is pending ...") + end) end) |