From: Hal Fulton Date: 2004-08-17T16:36:30+09:00 Subject: Re: Idea for testing ruvi Alexander Kellett wrote: >>This way, a test simply becomes a block of text, something easy >>to communicate back and forth. > > interesting idea but i'm not sure of the need to > involve vim really. the tests can be created with vim > usage in mind but i doubt vim will be very easily > testable in this manner. otoh, it would be nice to > know that all my testcases are correct so some > peer review on this would be really nice :) Well, I've done it before. In the days before vim, I wrote testcases for IBM's vi on AIX. Take a known file, apply known commands to it, get predictable output. vi (and vim) will read standard input and run commands that it finds there. Long ago I used this as a kind of poor man's macro. Plain vi was (is) not scriptable afaik. And IMO ruvi should read stdin the same way. It *almost* works, but it got stuck in an infinite loop on ":wq" (probably some kind of EOF problem). Hal