Christian Brabandt wrote:
> On Di, 13 Apr 2010, Bram Moolenaar wrote:
> > What helps with this is someone writing a good test. One that also
> > tries to find the border cases. In this specific case it's not so easy,
> > since it involves restarting Vim to check that loading undo information
> > from a file works as expected. But it doesn't involve writing C code,
> > any advanced Vim user should be able to do this.
>
> Could you elaborate on that (maybe taking this to private mail, in case
> this is disturbing here)? I am willing to help out and write test cases.
Basically:
- look at the documentation
- look at what the code does (fix documentation when needed)
- test that what it's supposed to do actually works, possibly trying
every documented feature
- think of border cases (empty file, one very long line, missing line
break, binary file, etc.) and test that all works
- have a brainstorm about what could go wrong and test that (e.g.,
changing the file with another editor, renaming another file in its
place)
Using some kind of script to make this less work. Could perhaps be a
Vim script that writes a script file and runs another Vim with "!vim -S
scriptfile filename". That way it's portable.
--
BLACK KNIGHT: The Black Knight always triumphs. Have at you!
ARTHUR takes his last leg off. The BLACK KNIGHT's body lands upright.
BLACK KNIGHT: All right, we'll call it a draw.
"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/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
To unsubscribe, reply using "remove me" as the subject.