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

Function TestInsertTextWithOneNewline

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

Source from the content-addressed store, hash-verified

425}
426
427func TestInsertTextWithOneNewline(t *testing.T) {
428 check(
429 t,
430 []string{
431 "My First Line",
432 "\t\tMy Second Line",
433 " Third Line",
434 "",
435 "1",
436 },
437 []operation{
438 {
439 start: Loc{2, 0},
440 end: Loc{2, 0},
441 text: []string{
442 " new line",
443 "No longer",
444 },
445 },
446 },
447 []string{
448 "My new line",
449 "No longer First Line",
450 "\t\tMy Second Line",
451 " Third Line",
452 "",
453 "1",
454 },
455 )
456}
457
458func TestInsertTextWithTwoNewlines(t *testing.T) {
459 check(

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected