[Toybox] [PATCH] vi: simplify tests

Eric Roshan-Eisner eric.d.eisner at gmail.com
Sat Jun 1 22:21:02 PDT 2024


I wrapped the repeated test infrastructure in a `vitest` function and
inlined the dozens of tiny input files.

I shortened some of the test inputs to be clearer and discovered a couple
bugs, left for now as commented out tests:
* `b` movement is off by one.
* Deleting/moving the last part of the last line of the file is off by one,
usually leaving the final character in place.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240601/a62b5bca/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi-simplify-tests.patch
Type: application/octet-stream
Size: 14048 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240601/a62b5bca/attachment.obj>


More information about the Toybox mailing list