So I'm almost finished with my Acme::Brainfck module and like a good boy should, I'm providing a full test suite. Once I assimiliated the various Test::* man ages, this was pretty easy to do for the most part. One thing has me stuck. In some places I write out stuff to STDOUT and STDERR or read it from STDIN. How do I do this in a perl test harness? My initial thought is to redirect STDIN, STDOUT, and STDERR to files and then read the files to see if I got the right values. Is there any simpler way? Some function in one of the Test::* modules I may have overlooked?
--
જલધર
In reply to Testing Input and Output by jaldhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |