Skip to content

Commit

Permalink
fix: correct some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
gh-liu committed Aug 7, 2024
1 parent 62cf796 commit 08635d4
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 73 deletions.
40 changes: 20 additions & 20 deletions tests/screenshots/tests-test_fold_line.lua---__test_001
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--|---------|---------|---------|---------|---------|---------|---------|---------|
01|│old
02|│ ┌fold
03|│ │fold
04|│---- ├ lines: fold····························································
05|│ │fold
06|└---- ╘ lines: fold····························································
07|~
08|~
09|~
10|~
01|┌fold
02|│fold
03|│fold
04|│fold
05|│fold
06|│ ┌fold
07| │fold
08|│---- 2├lines: fold····························································
09| │fold
10|└---- 3╘lines: fold····························································
11|~
12|~
13|~
Expand All @@ -21,20 +21,20 @@
20|~
21|~
22|~
23|tests/testcases/test_001.txt 8,1 Bot
23|tests/testcases/test_001.txt 11,2-1 All
24|

--|---------|---------|---------|---------|---------|---------|---------|---------|
01|01111111111111111111111111111111111111111111111111111111111111111111111111111111
02|01111112111111111111111111111111111111111111111111111111111111111111111111111111
03|01111112111111111111111111111111111111111111111111111111111111111111111111111111
04|00000003000000000000000000000000000000000000000000000000000000000000000000000000
05|01111112111111111111111111111111111111111111111111111111111111111111111111111111
06|00000003000000000000000000000000000000000000000000000000000000000000000000000000
07|22222222222222222222222222222222222222222222222222222222222222222222222222222222
08|22222222222222222222222222222222222222222222222222222222222222222222222222222222
09|22222222222222222222222222222222222222222222222222222222222222222222222222222222
10|22222222222222222222222222222222222222222222222222222222222222222222222222222222
02|01111111111111111111111111111111111111111111111111111111111111111111111111111111
03|01111111111111111111111111111111111111111111111111111111111111111111111111111111
04|01111111111111111111111111111111111111111111111111111111111111111111111111111111
05|01111111111111111111111111111111111111111111111111111111111111111111111111111111
06|01111111211111111111111111111111111111111111111111111111111111111111111111111111
07|01111111211111111111111111111111111111111111111111111111111111111111111111111111
08|00000000300000000000000000000000000000000000000000000000000000000000000000000000
09|01111111211111111111111111111111111111111111111111111111111111111111111111111111
10|00000000300000000000000000000000000000000000000000000000000000000000000000000000
11|22222222222222222222222222222222222222222222222222222222222222222222222222222222
12|22222222222222222222222222222222222222222222222222222222222222222222222222222222
13|22222222222222222222222222222222222222222222222222222222222222222222222222222222
Expand Down
36 changes: 18 additions & 18 deletions tests/screenshots/tests-test_fold_line.lua---__test_002
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
--|---------|---------|---------|---------|---------|---------|---------|---------|
01| ┌fold
02|│ ┌fold
03|│ │ │fold
04|│ │ │ │fold
05| │fold
06| │fold
07| │fold
08| └fold
01|┌fold
02|│ ┌fold
03|│ ┌fold
04|└----- └ lines:╘fold···························································
05|~
06|~
07|~
08|~
09|~
10|~
11|~
Expand All @@ -21,18 +21,18 @@
20|~
21|~
22|~
23|tests/testcases/test_002.txt 4,1 Bot
23|tests/testcases/test_002.txt 4,2-1 All
24|

--|---------|---------|---------|---------|---------|---------|---------|---------|
01|01111110111111101111111111111111111111111111111111111111111111111111111111111111
02|01111110111111101111111211111111111111111111111111111111111111111111111111111111
03|01111110111111101111111211111111111111111111111111111111111111111111111111111111
04|01111110111111101111111211111111111111111111111111111111111111111111111111111111
05|01111110111111101111111211111111111111111111111111111111111111111111111111111111
06|01111110111111101111111211111111111111111111111111111111111111111111111111111111
07|01111110111111101111111211111111111111111111111111111111111111111111111111111111
08|01111110111111101111111211111111111111111111111111111111111111111111111111111111
01|01111111111111111111111111111111111111111111111111111111111111111111111111111111
02|01111111011111111111111111111111111111111111111111111111111111111111111111111111
03|01111111011111112111111111111111111111111111111111111111111111111111111111111111
04|00000000000000003000000000000000000000000000000000000000000000000000000000000000
05|22222222222222222222222222222222222222222222222222222222222222222222222222222222
06|22222222222222222222222222222222222222222222222222222222222222222222222222222222
07|22222222222222222222222222222222222222222222222222222222222222222222222222222222
08|22222222222222222222222222222222222222222222222222222222222222222222222222222222
09|22222222222222222222222222222222222222222222222222222222222222222222222222222222
10|22222222222222222222222222222222222222222222222222222222222222222222222222222222
11|22222222222222222222222222222222222222222222222222222222222222222222222222222222
Expand All @@ -47,5 +47,5 @@
20|22222222222222222222222222222222222222222222222222222222222222222222222222222222
21|22222222222222222222222222222222222222222222222222222222222222222222222222222222
22|22222222222222222222222222222222222222222222222222222222222222222222222222222222
23|33333333333333333333333333333333333333333333333333333333333333333333333333333333
23|44444444444444444444444444444444444444444444444444444444444444444444444444444444
24|11111111111111111111111111111111111111111111111111111111111111111111111111111111
26 changes: 13 additions & 13 deletions tests/testcases/test_001.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
6 changes: 0 additions & 6 deletions tests/testcases/test_001.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,4 @@ normal! zo
normal! zc
11
normal! zc
let s:l = 8 - ((7 * winheight(0) + 23) / 47)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 8
normal! 0
" vim: set ft=vim :
20 changes: 10 additions & 10 deletions tests/testcases/test_002.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
fold
8 changes: 2 additions & 6 deletions tests/testcases/test_002.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ normal! zo
normal! zo
3
normal! zo
let s:l = 4 - ((3 * winheight(0) + 23) / 47)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 4
normal! 0
4
normal! zc
" vim: set ft=vim :

0 comments on commit 08635d4

Please sign in to comment.