On 10/28/19 10:07 AM, Jarno Mäkipää wrote: > I can try to help writing tests for lib/ utf-8 stuff, and I am sure > there is lot of things to do there to do for Andrew also. Anyway there > is ton of corner cases. > > I would also like to know if there would be anyway to do automated > testing for VI, ofc I could do it by implementing ex command > substitute for every visual mode command and then implement -c option > with multiple commands in row parsing. But I feel that implementing ex > commands just for testing purposes is bit tedious. And I am not sure > if there is visual mode commands that does not have ex mode > substitute. So if there would be easy way to push "interactive" > command slowly like "5G3dd:wq\n" and then check diff if 3 lines are > missing after line 5 or not...
For years I've wanted to do a pty master/slave command that would run another command in a simulated pty, feed input into it ala expect with simulated X and Y size of the "screen", and be able to check "where is the cursor now" after operations, and maybe get a dump of the simulated screen output. Alas, it was on my todo list along with implementing screen, and people on here insist that only tmux with random features I have no interest in is ever worth doing, so... nope, no plans. Rob _______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net