[Israel.pm] problem with a test

sawyer x xsawyerx at gmail.com
Mon Dec 31 14:24:57 PST 2012

On Mon, Dec 31, 2012 at 9:12 PM, moshe nahmias <moshegrey at ubuntu.com> wrote:

> I don't understand how it helps to the testing, after all you need to give
> data to the input or the parser to process it, isn't it?
> Meaning, now to seperate them what I do is just taking the user input, put
> it on an array, and sending it to the parser, how is it different from
> using the input directly?

If you're reading from STDIN in your function, you will make it much harder
to test for, because you're forcing the test to be interactive. If you
separate the interactive part, you could easily test it by feeding it
custom input.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20130101/44f8bb74/attachment.htm 

More information about the Perl mailing list