Skip to content

Instantly share code, notes, and snippets.

@adeolaawoyemi
Created February 7, 2011 10:27
Show Gist options
  • Save adeolaawoyemi/814223 to your computer and use it in GitHub Desktop.
Save adeolaawoyemi/814223 to your computer and use it in GitHub Desktop.
creating a test w/o a plan
#!/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