Skip to content

Commit

Permalink
fix: off-by-one errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 12, 2023
1 parent aa68ec4 commit 6062ad6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/mutator_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ a.describe("mutator", function()
assert.are.same({
{
message = "No filename found",
lnum = 1,
lnum = 0,
col = 0,
},
}, errors)
Expand All @@ -119,7 +119,7 @@ a.describe("mutator", function()
assert.are.same({
{
message = "Duplicate filename",
lnum = 2,
lnum = 1,
col = 0,
},
}, errors)
Expand All @@ -137,7 +137,7 @@ a.describe("mutator", function()
assert.are.same({
{
message = "Duplicate filename",
lnum = 2,
lnum = 1,
col = 0,
},
}, errors)
Expand Down

0 comments on commit 6062ad6

Please sign in to comment.