1
- describe (" cursorless.nvim tests " , function ()
1
+ describe (" " , function ()
2
2
local cursorless = require (" cursorless.cursorless" )
3
3
4
- describe (" window_get_visible_lines()" , function ()
5
- it (" Can read one visible line" , function ()
4
+ describe (" window_get_visible_lines() -> " , function ()
5
+ it (" can read one visible line" , function ()
6
6
local pos = vim .api .nvim_win_get_cursor (0 )[2 ]
7
7
local line = vim .api .nvim_get_current_line ()
8
8
local nline = line :sub (0 , pos ) .. " hello" .. line :sub (pos + 1 )
@@ -12,7 +12,7 @@ describe("cursorless.nvim tests", function()
12
12
assert (table.concat (visible ) == table.concat ({ 1 , 1 }))
13
13
end )
14
14
15
- it (" Can read all lines visible on the window" , function ()
15
+ it (" can read all lines visible on the window" , function ()
16
16
local maxlines = vim .api .nvim_win_get_height (0 )
17
17
local lines = {}
18
18
for _ = 1 , (maxlines + 1 ) do
@@ -23,18 +23,18 @@ describe("cursorless.nvim tests", function()
23
23
assert (table.concat (visible ) == table.concat ({ 1 , maxlines }))
24
24
end )
25
25
end )
26
- describe (" select_range()" , function ()
27
- it (" Selects the specified range" , function ()
26
+ describe (" select_range() -> " , function ()
27
+ it (" selects the specified range" , function ()
28
28
local lines = " hello world"
29
29
vim .api .nvim_buf_set_lines (0 , 0 , - 1 , false , vim .split (lines , " \n " ))
30
30
cursorless .select_range (1 , 2 , 1 , 4 )
31
31
32
32
assert (table.concat (_G .get_selected_text ()) == " llo" )
33
33
end )
34
34
end )
35
- describe (" buffer_get_selection()" , function ()
35
+ describe (" buffer_get_selection() -> " , function ()
36
36
it (
37
- " Can get the forward selection in a format expected by cursorless" ,
37
+ " can get the forward selection in a format expected by cursorless" ,
38
38
function ()
39
39
local lines = " hello world"
40
40
vim .api .nvim_buf_set_lines (0 , 0 , - 1 , false , vim .split (lines , " \n " ))
@@ -55,7 +55,7 @@ describe("cursorless.nvim tests", function()
55
55
end
56
56
)
57
57
it (
58
- " Can get the backward selection in a format expected by cursorless" ,
58
+ " can get the backward selection in a format expected by cursorless" ,
59
59
function ()
60
60
local lines = " hello world"
61
61
vim .api .nvim_buf_set_lines (0 , 0 , - 1 , false , vim .split (lines , " \n " ))
0 commit comments