diff options
| -rw-r--r-- | lua/file-empty.lua | 4 | ||||
| -rw-r--r-- | lua/lines.lua | 2 | ||||
| -rw-r--r-- | vis/motions/line-end.ref | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/lua/file-empty.lua b/lua/file-empty.lua index 170abc7..69ec17d 100644 --- a/lua/file-empty.lua +++ b/lua/file-empty.lua @@ -8,10 +8,6 @@ describe("empty file", function() assert.are.equal(0, file.size) end) - it("has \\n line endings", function() - assert.are.equal("lf", file.newlines) - end) - it("has zero lines", function() assert.are.equal(0, #file.lines) end) diff --git a/lua/lines.lua b/lua/lines.lua index ae2d2f8..745e8b0 100644 --- a/lua/lines.lua +++ b/lua/lines.lua @@ -39,7 +39,7 @@ describe("get file.lines[]", function() end) it("get empty \r\n line", function() - assert.are.equals("", file.lines[4]) + assert.are.equals("\r", file.lines[4]) end) it("get lines[#lines]", function() diff --git a/vis/motions/line-end.ref b/vis/motions/line-end.ref index 112fbcc..b2dd26b 100644 --- a/vis/motions/line-end.ref +++ b/vis/motions/line-end.ref @@ -3,7 +3,7 @@ $ To the end of the line. 2 From 3 From end to end 4 empty line \n 5 empty line \r\n -
+ 7 Tabs 8 Backspace |
