(t *testing.T)
| 394 | } |
| 395 | |
| 396 | func 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 | |
| 427 | func TestInsertTextWithOneNewline(t *testing.T) { |
| 428 | check( |