Skip to content

Commit

Permalink
test(Subs): Add test case for whole buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfication committed Dec 15, 2023
1 parent 9904f58 commit 3539622
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/textcase/plugin/subs_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,20 @@ describe("plugin", function()
"lorem-ipsum nunc-dolor-sit amet",
},
},
-- Test case for whole buffer
{
keys = "<CMD>Subs/lorem/nunc<CR>",
buffer_lines = {
"LoremIpsum LoremDolorSit amet",
"LOREM_IPSUM lorem_dolor_sit amet",
"lorem-ipsum lorem-dolor-sit amet",
},
expected = {
"NuncIpsum NuncDolorSit amet",
"NUNC_IPSUM nunc_dolor_sit amet",
"nunc-ipsum nunc-dolor-sit amet",
},
},
},
}

Expand Down

0 comments on commit 3539622

Please sign in to comment.