# 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
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)