Re: testing Parallel::Simple

2005-02-28 Thread Eric Wilhelm
# The following was supposedly scribed by # Ofer Nave # on Monday 28 February 2005 07:50 pm: Incidentally, I sorta picked a tough module to start learning how to write tests for.  Does anyone have advice on how to write tests for my Parallel::Simple module? I was just thinking of writing some

Re: testing Parallel::Simple

2005-02-28 Thread David Golden
Eric Wilhelm wrote: This is really an ill-formed idea right now but: ($stdout, $stderr, $code) = run_prog($prog, '--arg' , 'val'); ok($stdout eq arg - val); ($stdout, $stderr, $code) = run_prog($prog, '--nonarg' , 'val'); ok($code == 1); # error code (as expected) ($stdout, $stderr, $code)