MCPcopy
hub / github.com/micro-editor/micro / TestBug19872UndoIsFunky_2

Function TestBug19872UndoIsFunky_2

internal/buffer/buffer_generated_test.go:237–271  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

235}
236
237func TestBug19872UndoIsFunky_2(t *testing.T) {
238 check(
239 t,
240 []string{
241 "something",
242 "A",
243 "B",
244 "something else",
245 },
246 []operation{
247 {
248 start: Loc{0, 1},
249 end: Loc{0, 1},
250 text: []string{
251 " ",
252 },
253 },
254 {
255 start: Loc{0, 2},
256 end: Loc{0, 2},
257 text: []string{
258 "",
259 " ",
260 },
261 },
262 },
263 []string{
264 "something",
265 " A",
266 "",
267 " B",
268 "something else",
269 },
270 )
271}
272
273func TestInsertEmptyText(t *testing.T) {
274 check(

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected