Mais conteúdo relacionado
Semelhante a Software Testing (20)
Software Testing
- 10. What? You’re Still here?
Seriously, everything can be done with ok() and is()
It’s that simple
- 13. prove
$ prove t
t/done_testing.t .. ok
t/is.t ............ ok
t/ok.t ............ ok
t/ok_is.t ......... ok
All tests successful.
Files=4, Tests=5, 0 wallclock secs ( 0.04 usr
0.00 sys + 0.20 cusr 0.01 csys = 0.25 CPU)
Result: PASS
- 18. eq_or_diff
use Test::More tests => 1;
use Test::Differences qw(eq_or_diff);
eq_or_diff (
$hash,
{
name => 'Jagermech',
armament => {
RA => ['Autocannon 2', 'LRM 15'],
},
},
"comparing data structures",
);