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

Function TestInsertOneNewline

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

Source from the content-addressed store, hash-verified

394}
395
396func TestInsertOneNewline(t *testing.T) {
397 check(
398 t,
399 []string{
400 "My First Line",
401 "\t\tMy Second Line",
402 " Third Line",
403 "",
404 "1",
405 },
406 []operation{
407 {
408 start: Loc{3, 0},
409 end: Loc{3, 0},
410 text: []string{
411 "",
412 "",
413 },
414 },
415 },
416 []string{
417 "My ",
418 "First Line",
419 "\t\tMy Second Line",
420 " Third Line",
421 "",
422 "1",
423 },
424 )
425}
426
427func TestInsertTextWithOneNewline(t *testing.T) {
428 check(

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected