Created
February 7, 2011 10:27
-
-
Save adeolaawoyemi/814223 to your computer and use it in GitHub Desktop.
creating a test w/o a plan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/local/bin/perl | |
use strict; | |
use warnings; | |
use Test::More; | |
my $name = 'barney'; | |
my $status = 'in trouble'; | |
ok($name, 'we have $name'); | |
isnt($name, '', "\$name isn't empty"); | |
isnt($name, 'fred', "\$name isn't fred"); | |
is ($name, 'barney', 'name is barney'); | |
like($status, qr/trouble/i, "$name is in trouble"); | |
done_testing(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment