Creating Tests, cont.
- Use ok() to make assertions
sub hello_world {
return "Hello, world!";
}
ok( hello_world() eq "Hello, world!" );
| Perl Makes Testing Easy | Perl Testing | #20 |
sub hello_world {
return "Hello, world!";
}
ok( hello_world() eq "Hello, world!" );
| Copyright © 2006 Ian Langworth |