@@ -48,7 +48,7 @@ describe("can do basic debug statement insertion", function()
48
48
49
49
check_lines ({
50
50
" foo" ,
51
- " print('DEBUG: " .. filename .. " :1 [1] ')" ,
51
+ " print('DEBUG[1] : " .. filename .. " :1')" ,
52
52
" bar" ,
53
53
})
54
54
end )
@@ -64,7 +64,7 @@ describe("can do basic debug statement insertion", function()
64
64
feedkeys (" dqP" )
65
65
66
66
check_lines ({
67
- " print('DEBUG: " .. filename .. " :1 [1] ')" ,
67
+ " print('DEBUG[1] : " .. filename .. " :1')" ,
68
68
" foo" ,
69
69
" bar" ,
70
70
})
@@ -82,8 +82,8 @@ describe("can do basic debug statement insertion", function()
82
82
feedkeys (" dqP" )
83
83
84
84
check_lines ({
85
- " print('DEBUG: " .. filename .. " :1 [1] ')" ,
86
- " print('DEBUG: " .. filename .. " :2 [2] ')" ,
85
+ " print('DEBUG[1] : " .. filename .. " :1')" ,
86
+ " print('DEBUG[2] : " .. filename .. " :2')" ,
87
87
" foo" ,
88
88
" bar" ,
89
89
})
@@ -102,7 +102,7 @@ describe("can do basic debug statement insertion", function()
102
102
check_lines ({
103
103
" foo" ,
104
104
" bar" ,
105
- " print('DEBUG: " .. filename .. " :2 [1] ')" ,
105
+ " print('DEBUG[1] : " .. filename .. " :2')" ,
106
106
})
107
107
end )
108
108
end )
@@ -124,9 +124,9 @@ describe("can do variable debug statement insertion", function()
124
124
125
125
check_lines ({
126
126
" foo" ,
127
- " print('DEBUG: "
127
+ " print('DEBUG[1] : "
128
128
.. filename
129
- .. " :1 [1] : banana=' .. vim.inspect(banana))" ,
129
+ .. " :1: banana=' .. vim.inspect(banana))" ,
130
130
" bar" ,
131
131
})
132
132
end )
@@ -142,9 +142,9 @@ describe("can do variable debug statement insertion", function()
142
142
feedkeys (" dQPbanana<CR>" )
143
143
144
144
check_lines ({
145
- " print('DEBUG: "
145
+ " print('DEBUG[1] : "
146
146
.. filename
147
- .. " :1 [1] : banana=' .. vim.inspect(banana))" ,
147
+ .. " :1: banana=' .. vim.inspect(banana))" ,
148
148
" foo" ,
149
149
" bar" ,
150
150
})
@@ -168,7 +168,7 @@ describe("can do various file types", function()
168
168
169
169
check_lines ({
170
170
" foo" ,
171
- ' echo "DEBUG: ' .. filename .. ' :1 [1] "' ,
171
+ ' echo "DEBUG[1] : ' .. filename .. ' :1"' ,
172
172
" bar" ,
173
173
})
174
174
end )
@@ -185,7 +185,7 @@ describe("can do various file types", function()
185
185
186
186
check_lines ({
187
187
" foo" ,
188
- ' echo "DEBUG: ' .. filename .. ' :1 [1] : banana=" .. banana' ,
188
+ ' echo "DEBUG[1] : ' .. filename .. ' :1: banana=" .. banana' ,
189
189
" bar" ,
190
190
})
191
191
end )
@@ -225,7 +225,7 @@ describe("can do indenting correctly", function()
225
225
226
226
check_lines ({
227
227
" function()" ,
228
- " print('DEBUG: " .. filename .. " :1 [1] ')" ,
228
+ " print('DEBUG[1] : " .. filename .. " :1')" ,
229
229
" end" ,
230
230
})
231
231
end )
@@ -243,7 +243,7 @@ describe("can do indenting correctly", function()
243
243
244
244
check_lines ({
245
245
" function()" ,
246
- " print('DEBUG: " .. filename .. " :2 [1] ')" ,
246
+ " print('DEBUG[1] : " .. filename .. " :2')" ,
247
247
" end" ,
248
248
})
249
249
end )
@@ -260,7 +260,7 @@ describe("can do indenting correctly", function()
260
260
feedkeys (" dqP" )
261
261
262
262
check_lines ({
263
- " print('DEBUG: " .. filename .. " :1 [1] ')" ,
263
+ " print('DEBUG[1] : " .. filename .. " :1')" ,
264
264
" function()" ,
265
265
" end" ,
266
266
})
@@ -280,7 +280,7 @@ describe("can do indenting correctly", function()
280
280
281
281
check_lines ({
282
282
" function()" ,
283
- " \t print('DEBUG: " .. filename .. " :1 [1] ')" ,
283
+ " \t print('DEBUG[1] : " .. filename .. " :1')" ,
284
284
" end" ,
285
285
})
286
286
end )
@@ -315,7 +315,7 @@ describe("add custom filetype with setup()", function()
315
315
316
316
check_lines ({
317
317
" foo" ,
318
- " foo('DEBUG: " .. filename .. " :1 [1] ')" ,
318
+ " foo('DEBUG[1] : " .. filename .. " :1')" ,
319
319
" bar" ,
320
320
})
321
321
end )
@@ -332,7 +332,7 @@ describe("add custom filetype with setup()", function()
332
332
333
333
check_lines ({
334
334
" foo" ,
335
- " foo('DEBUG: " .. filename .. " :1 [1] : apple=' .. apple)" ,
335
+ " foo('DEBUG[1] : " .. filename .. " :1: apple=' .. apple)" ,
336
336
" bar" ,
337
337
})
338
338
end )
@@ -367,7 +367,7 @@ describe("add custom filetype with add_custom_filetypes()", function()
367
367
368
368
check_lines ({
369
369
" foo" ,
370
- " bar('DEBUG: " .. filename .. " :1 [1] ')" ,
370
+ " bar('DEBUG[1] : " .. filename .. " :1')" ,
371
371
" bar" ,
372
372
})
373
373
end )
0 commit comments