Mercurial > vim
comparison src/testdir/test_breakindent.vim @ 30685:0e58aae55486 v9.0.0677
patch 9.0.0677: breakindent test accepts wrong result
Commit: https://github.com/vim/vim/commit/06618f94f1c9ed73a84ad5d6a8e1933b0b8da846
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 6 19:21:20 2022 +0100
patch 9.0.0677: breakindent test accepts wrong result
Problem: Breakindent test accepts wrong result.
Solution: Fix the number column and adjust the expected text.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Oct 2022 20:30:04 +0200 |
parents | 60c61efcabce |
children | a59a8ce13129 |
comparison
equal
deleted
inserted
replaced
30684:fc971ca2a6b4 | 30685:0e58aae55486 |
---|---|
669 endfunc | 669 endfunc |
670 | 670 |
671 func Test_breakindent20_cpo_n_nextpage() | 671 func Test_breakindent20_cpo_n_nextpage() |
672 let s:input = "" | 672 let s:input = "" |
673 call s:test_windows('setl breakindent briopt=min:14 cpo+=n number') | 673 call s:test_windows('setl breakindent briopt=min:14 cpo+=n number') |
674 call setline(1, repeat('a', 200)) | 674 call setline(1, repeat('abcdefghijklmnopqrst', 10)) |
675 norm! 1gg | 675 norm! 1gg |
676 redraw! | 676 redraw! |
677 let lines = s:screen_lines(1, 20) | 677 let lines = s:screen_lines(1, 20) |
678 let expect = [ | 678 let expect = [ |
679 \ " 1 aaaaaaaaaaaaaaaa", | 679 \ " 1 abcdefghijklmnop", |
680 \ " aaaaaaaaaaaaaaaa", | 680 \ " qrstabcdefghijkl", |
681 \ " aaaaaaaaaaaaaaaa", | 681 \ " mnopqrstabcdefgh", |
682 \ ] | 682 \ ] |
683 call s:compare_lines(expect, lines) | 683 call s:compare_lines(expect, lines) |
684 " Scroll down one screen line | 684 " Scroll down one screen line |
685 setl scrolloff=5 | 685 setl scrolloff=5 |
686 norm! 5gj | 686 norm! 5gj |
687 redraw! | 687 redraw! |
688 let lines = s:screen_lines(1, 20) | 688 let lines = s:screen_lines(1, 20) |
689 " FIXME: this is not the right result | 689 let expect = [ |
690 let expect = [ | 690 \ "<<< qrstabcdefghijkl", |
691 \ "<<<aaaaaaaaaaaaaaaaa", | 691 \ " mnopqrstabcdefgh", |
692 \ " aaaaaaaaaaaaaaaa", | 692 \ " ijklmnopqrstabcd", |
693 \ " aaaaaaaaaaaaaaaa", | |
694 \ ] | 693 \ ] |
695 call s:compare_lines(expect, lines) | 694 call s:compare_lines(expect, lines) |
696 | 695 |
697 setl briopt+=shift:2 | 696 setl briopt+=shift:2 |
698 norm! 1gg | 697 norm! 1gg |
699 let lines = s:screen_lines(1, 20) | 698 let lines = s:screen_lines(1, 20) |
700 let expect = [ | 699 let expect = [ |
701 \ " 1 aaaaaaaaaaaaaaaa", | 700 \ " 1 abcdefghijklmnop", |
702 \ " aaaaaaaaaaaaaa", | 701 \ " qrstabcdefghij", |
703 \ " aaaaaaaaaaaaaa", | 702 \ " klmnopqrstabcd", |
704 \ ] | 703 \ ] |
705 call s:compare_lines(expect, lines) | 704 call s:compare_lines(expect, lines) |
706 " Scroll down one screen line | 705 " Scroll down one screen line |
707 norm! 5gj | 706 norm! 5gj |
708 let lines = s:screen_lines(1, 20) | 707 let lines = s:screen_lines(1, 20) |
709 " FIXME: this is not the right result | 708 let expect = [ |
710 let expect = [ | 709 \ "<<< qrstabcdefghij", |
711 \ "<<<aaaaaaaaaaaaaaaaa", | 710 \ " klmnopqrstabcd", |
712 \ " aaaaaaaaaaaaaa", | 711 \ " efghijklmnopqr", |
713 \ " aaaaaaaaaaaaaa", | |
714 \ ] | 712 \ ] |
715 call s:compare_lines(expect, lines) | 713 call s:compare_lines(expect, lines) |
716 | 714 |
717 call s:close_windows('set breakindent& briopt& cpo& number&') | 715 call s:close_windows('set breakindent& briopt& cpo& number&') |
718 endfunc | 716 endfunc |