<div dir="ltr">Sorry for the double post but I forgot to ask again about it.<br><br>How then do I make more then one test on the module?<br>I want to try more then one possible way to enter the data (writing the whole info from the command line, writing just one or two variables and a file input), but when I try to use it again it stays with the old data, even if I try to use a new object (tried even to have different names for the objects, didn't help).<br>
What am I supposed to do?<br><br><div class="gmail_quote">On Tue, Jan 1, 2013 at 12:29 AM, moshe nahmias <span dir="ltr"><<a href="mailto:moshegrey@ubuntu.com" target="_blank">moshegrey@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, didn't thought of that.<br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jan 1, 2013 at 12:24 AM, sawyer x <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_quote"><div>On Mon, Dec 31, 2012 at 9:12 PM, moshe nahmias <span dir="ltr"><<a href="mailto:moshegrey@ubuntu.com" target="_blank">moshegrey@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">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?<br>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? <br>
</div></blockquote></div><div><br>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.<br>
</div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il" target="_blank">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><br></div></blockquote></div><br></div>
</blockquote></div><br></div>