[Toybox] [PATCH] vi: Add tests

Jarno Mäkipää jmakip87 at gmail.com
Sat Jan 25 10:57:12 PST 2020


Hi

This patch goes directly on top of current master. (I came into
conclusion that it is better to have some tests, before actually doing
such a big change as switching buffer management to piece table or gap
buffer. So I will rebase, fix, rework, etc etc... and hopefully
resubmit those when Im entirely sure its the way to go.)

Test file integrity after load, move, delete and save+exit. Drawing
of buffer is not tested yet.

Added -s script option, accept file that is run as startup script of
commands. File is parsed byte at time and handled as you had typed it.
If EOF has been reached without editor close command, editing is
continued normally using keyboard. This functionality is in vim and
neovim, but not in POSIX vi standard. nvi (vi used in some macs) has
-s with different meaning...

Some simple tests added, dw last line test fails, so test is disabled.

-Jarno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi-Add-tests.patch
Type: text/x-patch
Size: 8652 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200125/53a8ccbc/attachment.bin>


More information about the Toybox mailing list