Improved test coverage of diff mode and fixed memory error#1685
Improved test coverage of diff mode and fixed memory error#1685dpelle wants to merge 7 commits intovim:masterfrom
Conversation
|
Interestingly, the newly added tests Test_diffopt_horizontal() and We could check that length of wp->w_p_fdm is I don't have a fix for this yet. |
Codecov Report
@@ Coverage Diff @@
## master #1685 +/- ##
=========================================
+ Coverage 74.85% 74.95% +0.1%
=========================================
Files 76 76
Lines 124942 124904 -38
=========================================
+ Hits 93521 93624 +103
+ Misses 31421 31280 -141
Continue to review full report at Codecov.
|
The heap overflow found by new tests is now fixed in this PR. |
When entering :diffsplit followed by :diffoff, w_p_fdm_save is empty and it is best to restore 'fdm' to "manual" rather than leaving set to 'diff'.
|
Dominique Pellé wrote:
This PR improves test coverage of diff mode:
- test vertical, horizontal, iwhite and icase values of 'diffopt' option
- test normal commands "dp" and "do" with a buffer number
With a sequence of changes like this, I can't possibly tell when it's
done. Please add a comment when this is ready to include.
Also, a comment at that start that it's not ready yet would avoid
including it too early.
…--
FROG: How you English say: I one more time, mac, I unclog my nose towards
you, sons of a window-dresser, so, you think you could out-clever us
French fellows with your silly knees-bent creeping about advancing
behaviour. (blows a raspberry) I wave my private parts at your aunties,
you brightly-coloured, mealy-templed, cranberry-smelling, electric
donkey-bottom biters.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
PR is ready to be included. |
|
Dominique wrote:
> With a sequence of changes like this, I can't possibly tell when it's done.
> Please add a comment when this is ready to include.
PR is ready to be included.
Thanks, I'll add it to the list.
…--
"I love deadlines. I especially like the whooshing sound they
make as they go flying by."
-- Douglas Adams
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
Problem: diff mode is insufficiently tested Solution: Add more test cases. (Dominique Pelle, closes vim#1685)
Problem: diff mode is insufficiently tested Solution: Add more test cases. (Dominique Pelle, closes vim#1685)
Problem: diff mode is insufficiently tested Solution: Add more test cases. (Dominique Pelle, closes vim/vim#1685) vim/vim@79a213d NA / already applied: --------------------- vim-patch:8.0.0421: diff mode wrong when adding line at end of buffer Problem: Diff mode is displayed wrong when adding a line at the end of a buffer. Solution: Adjust marks in diff mode. (James McCoy, closes vim/vim#1329) vim/vim@f58a847
Problem: diff mode is insufficiently tested Solution: Add more test cases. (Dominique Pelle, closes vim/vim#1685) vim/vim@79a213d NA / already applied: --------------------- vim-patch:8.0.0421: diff mode wrong when adding line at end of buffer Problem: Diff mode is displayed wrong when adding a line at the end of a buffer. Solution: Adjust marks in diff mode. (James McCoy, closes vim/vim#1329) vim/vim@f58a847
This PR improves test coverage of diff mode: